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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user