Update fs.rs

This commit is contained in:
Jeremy Soller 2017-07-12 22:16:35 -06:00 committed by GitHub
parent 362dd8a986
commit 4259ae6475

View file

@ -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(())