Skip to content

Commit

Permalink
util.rs: remove "write(true)"
Browse files Browse the repository at this point in the history
to fix warnings from the ineffective_open_options lint
  • Loading branch information
cakebaker committed May 2, 2024
1 parent 8abf9fc commit 5f9bc47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit 5f9bc47

Please sign in to comment.