mirror of https://github.com/rust-lang/cargo
Don't depend on `?` affecting type inference in weird ways
This commit is contained in:
parent
a9a0746945
commit
898969e4a4
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue