Skip to content

Commit 8858b35

Browse files
Fix a few more clippy::versions
1 parent 0b27121 commit 8858b35

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

clippy_lints/src/attrs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ declare_clippy_lint! {
468468
/// #[ignore = "Some good reason"]
469469
/// fn test() {}
470470
/// ```
471-
#[clippy::version = "1.85.0"]
471+
#[clippy::version = "1.88.0"]
472472
pub IGNORE_WITHOUT_REASON,
473473
pedantic,
474474
"ignored tests without messages"

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ declare_clippy_lint! {
780780
/// let aligned = std::ptr::dangling::<u32>();
781781
/// let mut_ptr: *mut i64 = std::ptr::dangling_mut();
782782
/// ```
783-
#[clippy::version = "1.87.0"]
783+
#[clippy::version = "1.88.0"]
784784
pub MANUAL_DANGLING_PTR,
785785
style,
786786
"casting small constant literals to pointers to create dangling pointers"

clippy_lints/src/doc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ declare_clippy_lint! {
9393
/// ```no_run
9494
/// //! <code>[first](x)second</code>
9595
/// ```
96-
#[clippy::version = "1.86.0"]
96+
#[clippy::version = "1.87.0"]
9797
pub DOC_LINK_CODE,
9898
nursery,
9999
"link with code back-to-back with other code"

clippy_lints/src/implicit_saturating_sub.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ declare_clippy_lint! {
6969
///
7070
/// let result = a.saturating_sub(b);
7171
/// ```
72-
#[clippy::version = "1.44.0"]
72+
#[clippy::version = "1.83.0"]
7373
pub INVERTED_SATURATING_SUB,
7474
correctness,
7575
"Check if a variable is smaller than another one and still subtract from it even if smaller"

clippy_lints/src/loops/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ declare_clippy_lint! {
778778
/// let _ = s[idx..];
779779
/// }
780780
/// ```
781-
#[clippy::version = "1.83.0"]
781+
#[clippy::version = "1.88.0"]
782782
pub CHAR_INDICES_AS_BYTE_INDICES,
783783
correctness,
784784
"using the character position yielded by `.chars().enumerate()` in a context where a byte index is expected"

clippy_lints/src/manual_abs_diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare_clippy_lint! {
3636
/// a.abs_diff(b)
3737
/// # ;
3838
/// ```
39-
#[clippy::version = "1.86.0"]
39+
#[clippy::version = "1.87.0"]
4040
pub MANUAL_ABS_DIFF,
4141
complexity,
4242
"using an if-else pattern instead of `abs_diff`"

clippy_lints/src/mem_replace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ declare_clippy_lint! {
6262
/// let mut an_option = Some(0);
6363
/// let taken = an_option.replace(1);
6464
/// ```
65-
#[clippy::version = "1.86.0"]
65+
#[clippy::version = "1.87.0"]
6666
pub MEM_REPLACE_OPTION_WITH_SOME,
6767
style,
6868
"replacing an `Option` with `Some` instead of `replace()`"

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4454,7 +4454,7 @@ declare_clippy_lint! {
44544454
/// values.contains(&10)
44554455
/// }
44564456
/// ```
4457-
#[clippy::version = "1.86.0"]
4457+
#[clippy::version = "1.87.0"]
44584458
pub MANUAL_CONTAINS,
44594459
perf,
44604460
"unnecessary `iter().any()` on slices that can be replaced with `contains()`"

clippy_lints/src/single_option_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare_clippy_lint! {
3030
/// param * 2
3131
/// }
3232
/// ```
33-
#[clippy::version = "1.86.0"]
33+
#[clippy::version = "1.87.0"]
3434
pub SINGLE_OPTION_MAP,
3535
nursery,
3636
"Checks for functions with method calls to `.map(_)` on an arg of type `Option` as the outermost expression."

clippy_lints/src/types/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ declare_clippy_lint! {
385385
/// ```no_run
386386
/// let right: std::borrow::Cow<'_, [u8]>;
387387
/// ```
388-
#[clippy::version = "1.85.0"]
388+
#[clippy::version = "1.87.0"]
389389
pub OWNED_COW,
390390
style,
391391
"needlessly owned Cow type"

0 commit comments

Comments
 (0)