mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Remove unnecessary into conversions
This commit is contained in:
parent
a4c0d39826
commit
d954a43e4a
@ -100,7 +100,7 @@ enum KnownHostError {
|
||||
|
||||
impl From<anyhow::Error> for KnownHostError {
|
||||
fn from(err: anyhow::Error) -> KnownHostError {
|
||||
KnownHostError::CheckError(err.into())
|
||||
KnownHostError::CheckError(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1187,7 +1187,7 @@ fn fetch_with_gitoxide(
|
||||
);
|
||||
let outcome = connection
|
||||
.prepare_fetch(&mut progress, gix::remote::ref_map::Options::default())?
|
||||
.with_shallow(shallow.clone().into())
|
||||
.with_shallow(shallow.clone())
|
||||
.receive(&mut progress, should_interrupt)?;
|
||||
Ok(outcome)
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user