Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jun 6, 2022
1 parent e42946a commit d4682db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-revision/src/spec/parse/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ fn short_describe_prefix(name: &BStr) -> Option<&BStr> {
(iter.count() == 1).then(|| candidate).flatten()
}

fn parens(input: &[u8]) -> Result<Option<(std::borrow::Cow<'_, BStr>, &BStr, usize)>, Error> {
type InsideParensRestConsumed<'a> = (std::borrow::Cow<'a, BStr>, &'a BStr, usize);
fn parens(input: &[u8]) -> Result<Option<InsideParensRestConsumed<'_>>, Error> {
if input.get(0) != Some(&b'{') {
return Ok(None);
}
Expand Down

0 comments on commit d4682db

Please sign in to comment.