From 287eabd4f7f7106b73fd5b5c66e0e09f521d0f74 Mon Sep 17 00:00:00 2001 From: KokaKiwi Date: Fri, 18 Oct 2013 14:16:00 +0200 Subject: [PATCH] Use new Path "constructor" --- cat/cat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cat/cat.rs b/cat/cat.rs index 68e5c8859..b8cf6a4c2 100644 --- a/cat/cat.rs +++ b/cat/cat.rs @@ -175,7 +175,7 @@ fn open(path: ~str) -> Option<@Reader> { return Some(stdin()); } - match std::io::file_reader(&std::path::Path(path)) { + match std::io::file_reader(&std::path::Path::new(path.as_slice())) { Ok(fd) => return Some(fd), Err(e) => { stderr().write_line(fmt!("cat: %s: %s", path, e));