Skip to content

Commit

Permalink
Update fs.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jul 13, 2017
1 parent f85579d commit 362dd8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libstd/sys/redox/fs.rs
Expand Up @@ -384,8 +384,9 @@ pub fn unlink(p: &Path) -> io::Result<()> {
}

pub fn rename(_old: &Path, _new: &Path) -> io::Result<()> {
::sys_common::util::dumb_print(format_args!("Rename\n"));
unimplemented!();
copy(old, new)?;
unlink(old)?;
Ok(())
}

pub fn set_perm(p: &Path, perm: FilePermissions) -> io::Result<()> {
Expand Down

0 comments on commit 362dd8a

Please sign in to comment.