From c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 22 Nov 2013 15:45:12 -0800 Subject: libstd: Change `Path::new` to `Path::init`. --- src/librustdoc/html/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/librustdoc/html') diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index 0df4820d822..3dc4b052f1c 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -336,7 +336,7 @@ fn mkdir(path: &Path) { /// static HTML tree. // FIXME (#9639): The closure should deal with &[u8] instead of &str fn clean_srcpath(src: &[u8], f: |&str|) { - let p = Path::new(src); + let p = Path::init(src); if p.as_vec() != bytes!(".") { for c in p.str_components().map(|x|x.unwrap()) { if ".." == c { @@ -411,7 +411,7 @@ impl<'self> DocFolder for SourceCollector<'self> { impl<'self> SourceCollector<'self> { /// Renders the given filename into its corresponding HTML source file. fn emit_source(&mut self, filename: &str) -> bool { - let p = Path::new(filename); + let p = Path::init(filename); // Read the contents of the file let mut contents = ~[]; -- cgit 1.4.1-3-g733a5