Skip to content

Commit e0f4442

Browse files
committed
Fix up formatting accordin to "cargo fmt"
1 parent f876ebe commit e0f4442

3 files changed

Lines changed: 8 additions & 14 deletions

File tree

crates/bundles/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ pub fn get_fallback_bundle_url(format_version: u32) -> String {
117117
if format_version < 32 {
118118
"https://relay.fullyjustified.net/default_bundle.tar".to_owned()
119119
} else {
120-
format!(
121-
"https://relay.fullyjustified.net/default_bundle_v{format_version}.tar"
122-
)
120+
format!("https://relay.fullyjustified.net/default_bundle_v{format_version}.tar")
123121
}
124122
}
125123

crates/xdv/examples/xdvdump.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ impl tectonic_xdv::XdvEvents for Stats {
120120

121121
fn handle_char_run(&mut self, font_num: i32, chars: &[i32]) -> Result<(), Self::Error> {
122122
let all_ascii_printable = chars.iter().all(|c| *c > 0x20 && *c < 0x7F);
123-
println!(
124-
"chars font={font_num}: {chars:?} all_ascii_printable={all_ascii_printable:?}"
125-
);
123+
println!("chars font={font_num}: {chars:?} all_ascii_printable={all_ascii_printable:?}");
126124
Ok(())
127125
}
128126

crates/xdv/src/lib.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@ impl Display for XdvError {
5353
write!(f, "illegal XDV opcode {opcode} at byte offset {offset}")
5454
}
5555
XdvError::UnexpectedEndOfStream => write!(f, "stream ended unexpectedly soon"),
56-
XdvError::FromUTF8(offset) => write!(
57-
f,
58-
"illegal UTF8 sequence starting at byte offset {offset}"
59-
),
60-
XdvError::FromUTF16(offset) => write!(
61-
f,
62-
"illegal UTF16 sequence starting at byte offset {offset}"
63-
),
56+
XdvError::FromUTF8(offset) => {
57+
write!(f, "illegal UTF8 sequence starting at byte offset {offset}")
58+
}
59+
XdvError::FromUTF16(offset) => {
60+
write!(f, "illegal UTF16 sequence starting at byte offset {offset}")
61+
}
6462
}
6563
}
6664
}

0 commit comments

Comments
 (0)