History

Merge pull request #1548 from nyurik/rm-dup-code

One fix of clippy::match_same_arms

Sebastian Thiel committed 2 years ago

Commit 030d8802 parents f992fb7 5bf18fb1 file · +0 −7Browse files

Unified · Split

gix-validate/src/tag.rs+0−7
@@ -116,13 +116,6 @@ pub(crate) fn name_inner(input: &BStr, mode: Mode) -> Result<Option<BString>, na · 115 unmodified lines
116 return Err(name::Error::RepeatedSlash);116 return Err(name::Error::RepeatedSlash);
117 }117 }
118 }118 }
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 }
126 c => {119 c => {
127 if *c == b'/' {120 if *c == b'/' {
128 component_start = component_end;121 component_start = component_end;