Skip to content

Commit 84456a0

Browse files
committed
use copied where clippy::map_clone
1 parent 4b84887 commit 84456a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/auth/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ fn credential_action(
493493
let args: Vec<&str> = provider
494494
.iter()
495495
.map(String::as_str)
496-
.chain(args.iter().map(|s| *s))
496+
.chain(args.iter().copied())
497497
.collect();
498498
let process = args[0];
499499
tracing::debug!("attempting credential provider: {args:?}");

0 commit comments

Comments
 (0)