File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ struct Options {
30
30
31
31
/// Parse command line arguments
32
32
fn parse_args ( ) -> Options {
33
- let args: Vec < String > = env:: args ( ) . into_iter ( ) . collect ( ) ;
33
+ let args: Vec < String > = env:: args ( ) . collect ( ) ;
34
34
let ( writer_args, action_args) = {
35
35
let split = args
36
36
. iter ( )
@@ -273,7 +273,6 @@ fn main() {
273
273
let opt = expand_params_file ( opt) ;
274
274
275
275
let env: BTreeMap < String , String > = env:: vars ( )
276
- . into_iter ( )
277
276
. filter ( |( key, _) | opt. env_keys . iter ( ) . any ( |k| k == key) )
278
277
. collect ( ) ;
279
278
Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ pub fn parse_rustfmt_manifest(manifest: &Path) -> RustfmtManifest {
62
62
63
63
let mut lines: Vec < String > = content
64
64
. split ( '\n' )
65
- . into_iter ( )
66
65
. filter ( |s| !s. is_empty ( ) )
67
66
. map ( |s| s. to_owned ( ) )
68
67
. collect ( ) ;
You can’t perform that action at this time.
0 commit comments