Skip to content

Commit 046ea13

Browse files
style: remove unnecessary braces in RevisionRef::from_str (#48)
1 parent 4e73be9 commit 046ea13

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,7 @@ impl FromStr for RevisionRef {
184184
project: project.to_owned(),
185185
hash: hash.to_owned(),
186186
})
187-
.ok_or({
188-
"no dividing colon found; expected revision ref. of the form <project>:<hash>"
189-
})
187+
.ok_or("no dividing colon found; expected revision ref. of the form <project>:<hash>")
190188
}
191189
}
192190

0 commit comments

Comments
 (0)