Remove unnecessary into conversions

This commit is contained in:
Esteban Küber 2025-01-09 19:20:27 +00:00
parent a4c0d39826
commit d954a43e4a
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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)
});