Skip to content

Commit 362dd8a

Browse files
authored
Update fs.rs
1 parent f85579d commit 362dd8a

File tree

1 file changed

+3
-2
lines changed
  • src/libstd/sys/redox

1 file changed

+3
-2
lines changed

src/libstd/sys/redox/fs.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,9 @@ pub fn unlink(p: &Path) -> io::Result<()> {
384384
}
385385

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

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

0 commit comments

Comments
 (0)