We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
map(Oid::from)
1 parent 10333ca commit c6ac8acCopy full SHA for c6ac8ac
1 file changed
radicle-surf/src/revision.rs
@@ -53,7 +53,7 @@ impl Revision for &str {
53
type Error = git2::Error;
54
55
fn object_id(&self, _repo: &Repository) -> Result<Oid, Self::Error> {
56
- Oid::from_str(self).map(Oid::from)
+ Oid::from_str(self)
57
}
58
59
@@ -78,7 +78,7 @@ impl Revision for String {
78
79
80
81
82
83
84
0 commit comments