One fix of clippy::match_same_arms
Unified · Split
| @@ -116,13 +116,6 @@ pub(crate) fn name_inner(input: &BStr, mode: Mode) -> Result<Option<BString>, na · 115 unmodified lines | ||
| 116 | 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 | 119 | c => { |
| 127 | 120 | if *c == b'/' { |
| 128 | 121 | component_start = component_end; |