From 5f9bc47274333500c222d2810898443cd4fcdd24 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Thu, 2 May 2024 17:38:27 +0200 Subject: [PATCH] util.rs: remove "write(true)" to fix warnings from the ineffective_open_options lint --- tests/common/util.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/common/util.rs b/tests/common/util.rs index 7ee0aa5..2bda816 100644 --- a/tests/common/util.rs +++ b/tests/common/util.rs @@ -862,7 +862,6 @@ impl AtPath { pub fn append(&self, name: &str, contents: &str) { log_info("write(append)", self.plus_as_string(name)); let mut f = OpenOptions::new() - .write(true) .append(true) .create(true) .open(self.plus(name)) @@ -874,7 +873,6 @@ impl AtPath { pub fn append_bytes(&self, name: &str, contents: &[u8]) { log_info("write(append)", self.plus_as_string(name)); let mut f = OpenOptions::new() - .write(true) .append(true) .create(true) .open(self.plus(name))