util.rs: remove "write(true)"

to fix warnings from the ineffective_open_options lint
This commit is contained in:
Daniel Hofstetter
2024-05-02 17:43:21 +02:00
parent 8abf9fcc0a
commit 5f9bc47274
-2
View File
@@ -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))