Skip to content

Commit

Permalink
clippy::ineffective_open_options
Browse files Browse the repository at this point in the history
warning: unnecessary use of `.write(true)` because there is `.append(true)`
    --> src/cmd/luau.rs:1814:17
     |
1814 |                 .write(true)
     |                 ^^^^^^^^^^^^ help: remove `.write(true)`
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ineffective_open_options
     = note: `#[warn(clippy::ineffective_open_options)]` on by default
  • Loading branch information
jqnatividad committed Dec 21, 2023
1 parent 7d7417b commit 1dd9c2f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cmd/luau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,6 @@ fn setup_helpers(
} else {
// append to an existing file. If the file does not exist, create it.
OpenOptions::new()
.write(true)
.create(true)
.append(true)
.open(sanitized_filename.clone())
Expand Down

0 comments on commit 1dd9c2f

Please sign in to comment.