clippy: remove unnecessary map(Oid::from)s

This commit is contained in:
Fintan Halpenny
2025-12-08 15:11:21 +00:00
parent 10333caec7
commit c6ac8ac6e3
+2 -2
View File
@@ -53,7 +53,7 @@ impl Revision for &str {
type Error = git2::Error;
fn object_id(&self, _repo: &Repository) -> Result<Oid, Self::Error> {
Oid::from_str(self).map(Oid::from)
Oid::from_str(self)
}
}
@@ -78,7 +78,7 @@ impl Revision for String {
type Error = git2::Error;
fn object_id(&self, _repo: &Repository) -> Result<Oid, Self::Error> {
Oid::from_str(self).map(Oid::from)
Oid::from_str(self)
}
}