diff options
Diffstat (limited to 'src/librustdoc/html/render.rs')
| -rw-r--r-- | src/librustdoc/html/render.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 7ed424136be..260f106906b 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -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",  | 
