Don't depend on `?` affecting type inference in weird ways

This commit is contained in:
Maybe Waffle 2024-04-04 23:56:01 +00:00
parent a9a0746945
commit 898969e4a4
1 changed files with 1 additions and 2 deletions

View File

@ -510,8 +510,7 @@ fn _remove_file(p: &Path) -> Result<()> {
}
}
Err(err).with_context(|| format!("failed to remove file `{}`", p.display()))?;
Ok(())
Err(err).with_context(|| format!("failed to remove file `{}`", p.display()))
}
fn set_not_readonly(p: &Path) -> io::Result<bool> {