mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +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());
|
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),
|
Ok(fd) => return Some(fd),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
stderr().write_line(fmt!("cat: %s: %s", path, e));
|
stderr().write_line(fmt!("cat: %s: %s", path, e));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue