path2: Remove .with_display_str and friends
Rewrite these methods as methods on Display and FilenameDisplay. This turns do path.with_display_str |s| { ... } into do path.display().with_str |s| { ... }
This commit is contained in:
parent
d6d9b92683
commit
c01a97b7a9
12 changed files with 131 additions and 126 deletions
|
@ -454,7 +454,7 @@ impl<'self> SourceCollector<'self> {
|
|||
let w = cur.open_writer(io::CreateOrTruncate);
|
||||
let mut w = BufferedWriter::new(w);
|
||||
|
||||
let title = cur.with_filename_display_str(|s| format!("{} -- source", s.unwrap()));
|
||||
let title = cur.filename_display().with_str(|s| format!("{} -- source", s));
|
||||
let page = layout::Page {
|
||||
title: title,
|
||||
ty: "source",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue