Skip to content

Commit 8bbe1ee

Browse files
committed
Redefine command_prelude::values in terms of ArgMatchesExt
1 parent 25bf8cc commit 8bbe1ee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,7 @@ impl<'a> ArgMatchesExt for ArgMatches<'a> {
481481
}
482482

483483
pub fn values(args: &ArgMatches<'_>, name: &str) -> Vec<String> {
484-
args.values_of(name)
485-
.unwrap_or_default()
486-
.map(|s| s.to_string())
487-
.collect()
484+
args._values_of(name)
488485
}
489486

490487
#[derive(PartialEq, PartialOrd, Eq, Ord)]

0 commit comments

Comments
 (0)