Radish alpha
r
rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt
Git libraries for Radicle
Radicle
Git
clippy: remove unnecessary `map(Oid::from)`s
Fintan Halpenny committed 4 months ago
commit c6ac8ac6e315071659d89616b8b6c21e5093271f
parent 10333ca
1 file changed +2 -2
modified radicle-surf/src/revision.rs
@@ -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)
    }
}