mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-15 03:26:18 +00:00
clippy: fix warnings introduced by Rust 1.76
This commit is contained in:
parent
dd64bae278
commit
04ebd863a6
5 changed files with 17 additions and 24 deletions
|
@ -503,7 +503,6 @@ fn test_write_to_self_empty() {
|
|||
|
||||
let file = OpenOptions::new()
|
||||
.create_new(true)
|
||||
.write(true)
|
||||
.append(true)
|
||||
.open(&file_path)
|
||||
.unwrap();
|
||||
|
@ -519,7 +518,6 @@ fn test_write_to_self() {
|
|||
|
||||
let file = OpenOptions::new()
|
||||
.create_new(true)
|
||||
.write(true)
|
||||
.append(true)
|
||||
.open(file_path)
|
||||
.unwrap();
|
||||
|
|
|
@ -864,7 +864,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))
|
||||
|
@ -876,7 +875,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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue