Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
s1rius committed Mar 26, 2024
1 parent 2186b18 commit 6d7105b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/hello_world/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ fn read_log_file_rewrite() {
.read(true)
.write(true)
.create(true)
.truncate(false)
.open(&path)
.unwrap();
let mut br = BufReader::new(&file);
Expand All @@ -135,6 +136,7 @@ fn read_log_file_rewrite() {
.read(true)
.write(true)
.create(true)
.truncate(false)
.open(plaintext_log_path)
.unwrap();

Expand Down
1 change: 1 addition & 0 deletions ezlog-core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ impl EZLogConfig {
.read(true)
.write(true)
.create(true)
.truncate(false)
.open(&path)?;
let mut len = file.metadata()?.len();
len = if len != max_size && len != 0 {
Expand Down
1 change: 1 addition & 0 deletions ezlogcli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ pub fn main() -> anyhow::Result<()> {
let output_file = OpenOptions::new()
.write(true)
.create(true)
.truncate(false)
.open(output)
.with_context(|| "output file create error".to_string())?;

Expand Down

0 comments on commit 6d7105b

Please sign in to comment.