Skip to content

Commit

Permalink
Addressed clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
UebelAndre committed Jan 12, 2023
1 parent 50a6bef commit f58c81d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions tools/rustdoc/rustdoc_test_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct Options {

/// Parse command line arguments
fn parse_args() -> Options {
let args: Vec<String> = env::args().into_iter().collect();
let args: Vec<String> = env::args().collect();
let (writer_args, action_args) = {
let split = args
.iter()
Expand Down Expand Up @@ -273,7 +273,6 @@ fn main() {
let opt = expand_params_file(opt);

let env: BTreeMap<String, String> = env::vars()
.into_iter()
.filter(|(key, _)| opt.env_keys.iter().any(|k| k == key))
.collect();

Expand Down
1 change: 0 additions & 1 deletion tools/rustfmt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ pub fn parse_rustfmt_manifest(manifest: &Path) -> RustfmtManifest {

let mut lines: Vec<String> = content
.split('\n')
.into_iter()
.filter(|s| !s.is_empty())
.map(|s| s.to_owned())
.collect();
Expand Down

0 comments on commit f58c81d

Please sign in to comment.