mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Use new Path "constructor"
This commit is contained in:
+1
-1
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user