Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some test/bench-related tweaks #6707

Merged
merged 2 commits into from
Mar 2, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Redefine command_prelude::values in terms of ArgMatchesExt
  • Loading branch information
dwijnand committed Mar 2, 2019
commit 8bbe1ee88b6c94d646a0358b3827e9710a434eaa
5 changes: 1 addition & 4 deletions src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,7 @@ impl<'a> ArgMatchesExt for ArgMatches<'a> {
}

pub fn values(args: &ArgMatches<'_>, name: &str) -> Vec<String> {
args.values_of(name)
.unwrap_or_default()
.map(|s| s.to_string())
.collect()
args._values_of(name)
}

#[derive(PartialEq, PartialOrd, Eq, Ord)]
Expand Down