1
Fork 0

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:
Kevin Ballard 2013-10-06 18:51:49 -07:00
parent d6d9b92683
commit c01a97b7a9
12 changed files with 131 additions and 126 deletions

View file

@ -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",