File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -277,8 +277,7 @@ fn parse_octal_field(bytes: &[u8]) -> PaxResult<u64> {
277277 if s. starts_with ( '+' ) || s. starts_with ( '-' ) {
278278 return Err ( PaxError :: InvalidHeader ( format ! ( "invalid octal: {}" , s) ) ) ;
279279 }
280- u64:: from_str_radix ( s, 8 )
281- . map_err ( |_| PaxError :: InvalidHeader ( format ! ( "invalid octal: {}" , s) ) )
280+ u64:: from_str_radix ( s, 8 ) . map_err ( |_| PaxError :: InvalidHeader ( format ! ( "invalid octal: {}" , s) ) )
282281}
283282
284283/// Parse filename, removing NUL terminator
Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ mod parsing {
629629 if st. starts_with ( '+' ) || st. starts_with ( '-' ) {
630630 return Err ( format ! ( "invalid repeat count '{st}' in [c*n] construct" , ) ) ;
631631 }
632-
632+
633633 let radix = if st. starts_with ( '0' ) {
634634 // Octal
635635 8_u32
You can’t perform that action at this time.
0 commit comments