Skip to content

Commit

Permalink
fix: cargo clippy open file with truncate false
Browse files Browse the repository at this point in the history
  • Loading branch information
kruserr committed Sep 22, 2024
1 parent 135589e commit 8e6de32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn open_or_create_file(path: &str) -> Result<File, Box<dyn Error>> {
}

let file =
OpenOptions::new().read(true).write(true).create(true).open(path)?;
OpenOptions::new().read(true).write(true).create(true).truncate(false).open(path)?;

Ok(file)
}
Expand Down

0 comments on commit 8e6de32

Please sign in to comment.