tests/common/util.rs: fix clippy warnings

from doc_lazy_continuation and ineffective_open_options lints
This commit is contained in:
Daniel Hofstetter
2024-09-06 09:42:52 +02:00
parent 7e0160b0c7
commit a87683f219

View File

@@ -862,7 +862,6 @@ impl AtPath {
pub fn append(&self, name: &str, contents: &str) { pub fn append(&self, name: &str, contents: &str) {
log_info("write(append)", self.plus_as_string(name)); log_info("write(append)", self.plus_as_string(name));
let mut f = OpenOptions::new() let mut f = OpenOptions::new()
.write(true)
.append(true) .append(true)
.create(true) .create(true)
.open(self.plus(name)) .open(self.plus(name))
@@ -874,7 +873,6 @@ impl AtPath {
pub fn append_bytes(&self, name: &str, contents: &[u8]) { pub fn append_bytes(&self, name: &str, contents: &[u8]) {
log_info("write(append)", self.plus_as_string(name)); log_info("write(append)", self.plus_as_string(name));
let mut f = OpenOptions::new() let mut f = OpenOptions::new()
.write(true)
.append(true) .append(true)
.create(true) .create(true)
.open(self.plus(name)) .open(self.plus(name))