File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ impl Input<'_> {
568568 bytes_total += rlen;
569569 reads_partial += 1 ;
570570 let padding = vec ! [ pad; target_len - rlen] ;
571- buf. splice ( base_idx + rlen..next_blk, padding. into_iter ( ) ) ;
571+ buf. splice ( base_idx + rlen..next_blk, padding) ;
572572 }
573573 rlen => {
574574 bytes_total += rlen;
Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ where
364364 let mut state = ParseState :: Global ;
365365 let mut saw_colorterm_match = false ;
366366
367- for ( num, line) in ( 1 ..) . zip ( user_input. into_iter ( ) ) {
367+ for ( num, line) in ( 1 ..) . zip ( user_input) {
368368 let line = line. borrow ( ) . purify ( ) ;
369369 if line. is_empty ( ) {
370370 continue ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ pub fn parse_format_flags(args: &[String]) -> Result<Vec<ParsedFormatterItemInfo
121121 for arg in arg_iter {
122122 if expect_type_string {
123123 let v = parse_type_string ( arg) ?;
124- formats. extend ( v. into_iter ( ) ) ;
124+ formats. extend ( v) ;
125125 expect_type_string = false ;
126126 } else if arg. starts_with ( "--" ) {
127127 if arg. len ( ) == 2 {
@@ -130,7 +130,7 @@ pub fn parse_format_flags(args: &[String]) -> Result<Vec<ParsedFormatterItemInfo
130130 if arg. starts_with ( "--format=" ) {
131131 let params: String = arg. chars ( ) . skip_while ( |c| * c != '=' ) . skip ( 1 ) . collect ( ) ;
132132 let v = parse_type_string ( & params) ?;
133- formats. extend ( v. into_iter ( ) ) ;
133+ formats. extend ( v) ;
134134 }
135135 if arg == "--format" {
136136 expect_type_string = true ;
@@ -154,7 +154,7 @@ pub fn parse_format_flags(args: &[String]) -> Result<Vec<ParsedFormatterItemInfo
154154 }
155155 if !format_spec. is_empty ( ) {
156156 let v = parse_type_string ( & format_spec) ?;
157- formats. extend ( v. into_iter ( ) ) ;
157+ formats. extend ( v) ;
158158 expect_type_string = false ;
159159 }
160160 }
You can’t perform that action at this time.
0 commit comments