mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Fix test on Rust Stable.
https://github.com/rust-lang/rust/issues/32801
This commit is contained in:
parent
e673a102b6
commit
8ff308740c
2 changed files with 2 additions and 2 deletions
|
@ -246,7 +246,7 @@ impl AtPath {
|
|||
|
||||
pub fn append(&self, name: &str, contents: &str) {
|
||||
log_info("open(append)", self.plus_as_string(name));
|
||||
let mut f = OpenOptions::new().append(true).open(self.plus(name)).unwrap();
|
||||
let mut f = OpenOptions::new().write(true).append(true).open(self.plus(name)).unwrap();
|
||||
let _ = f.write(contents.as_bytes());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue