Skip to content

Commit dfcd218

Browse files
Format Rust code using rustfmt
1 parent 9a1ffd1 commit dfcd218

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rar-common/src/util.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,11 +312,8 @@ pub fn write_json_config<T: Serialize>(settings: &T, file: &mut impl Write) -> s
312312
}
313313

314314
pub fn write_cbor_config<T: Serialize>(settings: &T, file: &mut impl Write) -> std::io::Result<()> {
315-
cbor4ii::serde::to_writer(file, &settings).map_err(|e| {
316-
std::io::Error::other(
317-
format!("Failed to write cbor config: {}", e),
318-
)
319-
})
315+
cbor4ii::serde::to_writer(file, &settings)
316+
.map_err(|e| std::io::Error::other(format!("Failed to write cbor config: {}", e)))
320317
}
321318

322319
pub fn create_with_privileges<P: AsRef<Path>>(p: P) -> std::io::Result<File> {

0 commit comments

Comments
 (0)