Skip to content

Commit 5bf18fb

Browse files
committed
One fix of clippy::match_same_arms
Clippy suggests to collapse identical match arms ([info](https://rust-lang.github.io/rust-clippy/master/index.html#/match_same_arms)), but i am not too certain it will create more readable code everywhere. Though, while looking at it, this instance clearly is an accidental dup.
1 parent c3f173c commit 5bf18fb

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

gix-validate/src/tag.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ pub(crate) fn name_inner(input: &BStr, mode: Mode) -> Result<Option<BString>, na
116116
return Err(name::Error::RepeatedSlash);
117117
}
118118
}
119-
b'.' if previous == b'/' => {
120-
if let Some(out) = out.as_mut() {
121-
out.push(b'-');
122-
} else {
123-
return Err(name::Error::StartsWithDot);
124-
}
125-
}
126119
c => {
127120
if *c == b'/' {
128121
component_start = component_end;

0 commit comments

Comments
 (0)