Skip to content

Commit 0766f69

Browse files
Copilotjgarzik
andcommitted
Run cargo fmt to fix formatting issues
Co-authored-by: jgarzik <494411+jgarzik@users.noreply.github.com>
1 parent 0a98e2d commit 0766f69

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pax/formats/cpio.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

text/tr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)