Skip to content

Commit 42a0c72

Browse files
committed
fix: add msrv
1 parent 246b519 commit 42a0c72

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,7 +3104,7 @@ declare_clippy_lint! {
31043104
/// Ok(())
31053105
/// }
31063106
/// ```
3107-
#[clippy::version = "1.65.0"]
3107+
#[clippy::version = "1.66.0"]
31083108
pub SEEK_FROM_CURRENT,
31093109
complexity,
31103110
"use dedicated method for seek from current position"
@@ -3650,7 +3650,9 @@ impl Methods {
36503650
vec_resize_to_zero::check(cx, expr, count_arg, default_arg, span);
36513651
},
36523652
("seek", [arg]) => {
3653-
seek_from_current::check(cx, expr, recv, arg);
3653+
if meets_msrv(self.msrv, msrvs::SEEK_FROM_CURRENT) {
3654+
seek_from_current::check(cx, expr, recv, arg);
3655+
}
36543656
},
36553657
("sort", []) => {
36563658
stable_sort_primitive::check(cx, expr, recv);

clippy_utils/src/msrvs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ msrv_aliases! {
1616
1,58,0 { FORMAT_ARGS_CAPTURE }
1717
1,53,0 { OR_PATTERNS, MANUAL_BITS, BTREE_MAP_RETAIN, BTREE_SET_RETAIN, ARRAY_INTO_ITERATOR }
1818
1,52,0 { STR_SPLIT_ONCE, REM_EUCLID_CONST }
19-
1,51,0 { BORROW_AS_PTR, UNSIGNED_ABS }
19+
1,51,0 { BORROW_AS_PTR, SEEK_FROM_CURRENT, UNSIGNED_ABS }
2020
1,50,0 { BOOL_THEN, CLAMP }
2121
1,47,0 { TAU }
2222
1,46,0 { CONST_IF_MATCH }

0 commit comments

Comments
 (0)