Skip to content

Commit 95ec643

Browse files
committed
Rustfmt
1 parent 3230dc7 commit 95ec643

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

minidumper-test/src/lib.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,14 @@ pub fn spinup_server(id: &str, dump_path: Option<PathBuf>) -> Server {
102102
let dump_path = dump_path.unwrap_or_else(|| make_dump_path(id));
103103

104104
if dump_path.exists()
105-
&& let Err(e) = std::fs::remove_file(&dump_path) {
106-
panic!(
107-
"failed to remove existing dump file {}: {}",
108-
dump_path.display(),
109-
e
110-
);
111-
}
105+
&& let Err(e) = std::fs::remove_file(&dump_path)
106+
{
107+
panic!(
108+
"failed to remove existing dump file {}: {}",
109+
dump_path.display(),
110+
e
111+
);
112+
}
112113

113114
let mut server = minidumper::Server::with_name(id).expect("failed to start server");
114115

minidumper/examples/diskwrite.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ fn main() {
2222
let dump_path = std::path::PathBuf::from(format!("dumps/{uuid}.dmp"));
2323

2424
if let Some(dir) = dump_path.parent()
25-
&& !dir.try_exists()? {
26-
std::fs::create_dir_all(dir)?;
27-
}
25+
&& !dir.try_exists()?
26+
{
27+
std::fs::create_dir_all(dir)?;
28+
}
2829
let file = std::fs::File::create(&dump_path)?;
2930
Ok((file, dump_path))
3031
}

0 commit comments

Comments
 (0)