Skip to content

Commit

Permalink
fix: remove redundant .write(true) after .append(true) as per clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLove committed Feb 23, 2024
1 parent 13f9137 commit 85fc1c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion shell/src/command_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ impl RedirType {
.append(true)
.create(true)
.read(true)
.write(true)
.open(path)?;
// Use as_raw_fd ot nto_raw_fd so f will close when dropped.
Sys::dup2_fd(f.into(), *fd)?;
Expand Down

0 comments on commit 85fc1c1

Please sign in to comment.