Update fs.rs
This commit is contained in:
parent
362dd8a986
commit
4259ae6475
1 changed files with 1 additions and 1 deletions
|
|
@ -383,7 +383,7 @@ pub fn unlink(p: &Path) -> io::Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn rename(_old: &Path, _new: &Path) -> io::Result<()> {
|
||||
pub fn rename(old: &Path, new: &Path) -> io::Result<()> {
|
||||
copy(old, new)?;
|
||||
unlink(old)?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue