Skip to content

Commit 4a9720b

Browse files
committed
chore: fix clippy warnings
1 parent 5771999 commit 4a9720b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn main() {
3333
cli.command
3434
};
3535

36-
let chdir = cli.working_directory.map(|wd| format!("--chdir={}", wd));
36+
let chdir = cli.working_directory.map(|wd| format!("--chdir={wd}"));
3737

3838
let non_interactive = if cli.non_interactive {
3939
Some("--no-ask-password")
@@ -57,15 +57,15 @@ fn main() {
5757

5858
vars.iter()
5959
.filter(|e| !(cli.set_home && *e == "HOME"))
60-
.map(|e| format!("--setenv={}", e))
60+
.map(|e| format!("--setenv={e}"))
6161
.collect()
6262
} else {
6363
Vec::new()
6464
};
6565

6666
let nofile = cli
6767
.file_descriptor_limit
68-
.map(|limit_nofile| format!("--property=LimitNOFILE={}", limit_nofile));
68+
.map(|limit_nofile| format!("--property=LimitNOFILE={limit_nofile}"));
6969

7070
if command.is_empty() && !cli.login {
7171
let mut cmd = clap::Command::new(env!("CARGO_PKG_NAME"));

0 commit comments

Comments
 (0)