Update fs.rs

This commit is contained in:
Jeremy Soller
2017-07-12 20:40:43 -06:00
committed by GitHub
parent f85579d4a2
commit 362dd8a986

View File

@@ -384,8 +384,9 @@ pub fn unlink(p: &Path) -> io::Result<()> {
} }
pub fn rename(_old: &Path, _new: &Path) -> io::Result<()> { pub fn rename(_old: &Path, _new: &Path) -> io::Result<()> {
::sys_common::util::dumb_print(format_args!("Rename\n")); copy(old, new)?;
unimplemented!(); unlink(old)?;
Ok(())
} }
pub fn set_perm(p: &Path, perm: FilePermissions) -> io::Result<()> { pub fn set_perm(p: &Path, perm: FilePermissions) -> io::Result<()> {