@@ -68,8 +68,8 @@ mod or_then_unwrap;
6868mod path_buf_push_overwrite;
6969mod range_zip_with_len;
7070mod repeat_once;
71- mod rewind_instead_of_seek_to_start;
7271mod search_is_some;
72+ mod seek_to_start_instead_of_rewind;
7373mod single_char_add_str;
7474mod single_char_insert_string;
7575mod single_char_pattern;
@@ -3093,7 +3093,7 @@ declare_clippy_lint! {
30933093 /// }
30943094 /// ```
30953095 #[ clippy:: version = "1.66.0" ]
3096- pub REWIND_INSTEAD_OF_SEEK_TO_START ,
3096+ pub SEEK_TO_START_INSTEAD_OF_REWIND ,
30973097 complexity,
30983098 "jumping to the start of stream using `seek` method"
30993099}
@@ -3222,7 +3222,7 @@ impl_lint_pass!(Methods => [
32223222 VEC_RESIZE_TO_ZERO ,
32233223 VERBOSE_FILE_READS ,
32243224 ITER_KV_MAP ,
3225- REWIND_INSTEAD_OF_SEEK_TO_START ,
3225+ SEEK_TO_START_INSTEAD_OF_REWIND ,
32263226] ) ;
32273227
32283228/// Extracts a method call name, args, and `Span` of the method name.
@@ -3639,7 +3639,7 @@ impl Methods {
36393639 } ,
36403640 ( "seek" , [ arg] ) => {
36413641 if meets_msrv ( self . msrv , msrvs:: SEEK_REWIND ) {
3642- rewind_instead_of_seek_to_start :: check ( cx, expr, recv, arg, span) ;
3642+ seek_to_start_instead_of_rewind :: check ( cx, expr, recv, arg, span) ;
36433643 }
36443644 } ,
36453645 ( "sort" , [ ] ) => {
0 commit comments