From 1dd9c2fc58e67f601b1030d243d3aafbe55dd4bb Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Thu, 21 Dec 2023 11:44:38 -0500 Subject: [PATCH] clippy::ineffective_open_options 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 --- src/cmd/luau.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cmd/luau.rs b/src/cmd/luau.rs index 1330131e2..d2c3153b3 100644 --- a/src/cmd/luau.rs +++ b/src/cmd/luau.rs @@ -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())