mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
Use new Path "constructor"
This commit is contained in:
parent
f1ca63f280
commit
287eabd4f7
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue