Skip to content

Commit

Permalink
chore: cargo clippy --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MITSUBOSHI committed Mar 23, 2024
1 parent 1c359fe commit de04c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/subcommand/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub fn run(data: Data) -> Result<(), Error> {
let data_string = data.to_string();
let data = data_string.as_bytes();
let mut child = Command::new("xsel")
.args(&["--clipboard", "--input"])
.args(["--clipboard", "--input"])
.stdin(Stdio::piped())
.stdout(Stdio::null())
.spawn()?;
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/paste.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::process::Command;

pub fn run() -> Result<(), Error> {
let output = Command::new("xsel")
.args(&["--clipboard", "--output"])
.args(["--clipboard", "--output"])
.output();

match output {
Expand Down

0 comments on commit de04c43

Please sign in to comment.