Skip to content

Commit 898969e

Browse files
committed
Don't depend on ? affecting type inference in weird ways
1 parent a9a0746 commit 898969e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/cargo-util/src/paths.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,7 @@ fn _remove_file(p: &Path) -> Result<()> {
510510
}
511511
}
512512

513-
Err(err).with_context(|| format!("failed to remove file `{}`", p.display()))?;
514-
Ok(())
513+
Err(err).with_context(|| format!("failed to remove file `{}`", p.display()))
515514
}
516515

517516
fn set_not_readonly(p: &Path) -> io::Result<bool> {

0 commit comments

Comments
 (0)