mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-10-18 19:10:31 +08:00
clippy: remove unnecessary map(Oid::from)s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user