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
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;