Skip to content

Commit

Permalink
fix(main): fixed clippy lint
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk committed Sep 22, 2023
1 parent 5d7749c commit 3548ea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ fn main() -> std::io::Result<()> {
let file_path = dump_path.join(format!("ptest_{}.toml", args));
let mut file =
File::create(&file_path).expect(&format!("Failed to create file at {:?}", file_path));
let mut file = File::create(&file_path)
.unwrap_or_else(|_| panic!("Failed to create file at {:?}", file_path));
file.write_all(content.as_bytes())
.expect("Failed to write to file");
}
Expand Down

0 comments on commit 3548ea6

Please sign in to comment.