Skip to content

Commit eab0a75

Browse files
committed
Update version attribute for 1.73 lints
1 parent b437069 commit eab0a75

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

clippy_lints/src/error_impl_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare_clippy_lint! {
2727
///
2828
/// impl std::error::Error for Error { ... }
2929
/// ```
30-
#[clippy::version = "1.72.0"]
30+
#[clippy::version = "1.73.0"]
3131
pub ERROR_IMPL_ERROR,
3232
restriction,
3333
"exported types named `Error` that implement `Error`"

clippy_lints/src/four_forward_slashes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
/// // ...
2929
/// }
3030
/// ```
31-
#[clippy::version = "1.72.0"]
31+
#[clippy::version = "1.73.0"]
3232
pub FOUR_FORWARD_SLASHES,
3333
suspicious,
3434
"comments with 4 forward slashes (`////`) likely intended to be doc comments (`///`)"

clippy_lints/src/manual_float_methods.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare_clippy_lint! {
2626
/// # let x = 1.0f32;
2727
/// if x.is_infinite() {}
2828
/// ```
29-
#[clippy::version = "1.72.0"]
29+
#[clippy::version = "1.73.0"]
3030
pub MANUAL_IS_INFINITE,
3131
style,
3232
"use dedicated method to check if a float is infinite"
@@ -51,7 +51,7 @@ declare_clippy_lint! {
5151
/// if x.is_finite() {}
5252
/// if x.is_finite() {}
5353
/// ```
54-
#[clippy::version = "1.72.0"]
54+
#[clippy::version = "1.73.0"]
5555
pub MANUAL_IS_FINITE,
5656
style,
5757
"use dedicated method to check if a float is finite"

clippy_lints/src/matches/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ declare_clippy_lint! {
961961
/// _ => todo!(),
962962
/// }
963963
/// ```
964-
#[clippy::version = "1.72.0"]
964+
#[clippy::version = "1.73.0"]
965965
pub REDUNDANT_GUARDS,
966966
complexity,
967967
"checks for unnecessary guards in match expressions"

clippy_lints/src/methods/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ declare_clippy_lint! {
29702970
/// assert_eq!((*any_box).type_id(), TypeId::of::<i32>());
29712971
/// // ^ dereference first, to call `type_id` on `dyn Any`
29722972
/// ```
2973-
#[clippy::version = "1.72.0"]
2973+
#[clippy::version = "1.73.0"]
29742974
pub TYPE_ID_ON_BOX,
29752975
suspicious,
29762976
"calling `.type_id()` on `Box<dyn Any>`"
@@ -3391,7 +3391,7 @@ declare_clippy_lint! {
33913391
/// // ^^^^^^^^^^^ remove the trailing newline
33923392
/// assert_eq!(num, 42);
33933393
/// ```
3394-
#[clippy::version = "1.72.0"]
3394+
#[clippy::version = "1.73.0"]
33953395
pub READ_LINE_WITHOUT_TRIM,
33963396
correctness,
33973397
"calling `Stdin::read_line`, then trying to parse it without first trimming"
@@ -3419,7 +3419,7 @@ declare_clippy_lint! {
34193419
/// # let c = 'c';
34203420
/// matches!(c, '\\' | '.' | '+' | '*' | '(' | ')' | '|' | '[' | ']' | '{' | '}' | '^' | '$' | '#' | '&' | '-' | '~');
34213421
/// ```
3422-
#[clippy::version = "1.72.0"]
3422+
#[clippy::version = "1.73.0"]
34233423
pub STRING_LIT_CHARS_ANY,
34243424
restriction,
34253425
"checks for `<string_lit>.chars().any(|i| i == c)`"
@@ -3454,7 +3454,7 @@ declare_clippy_lint! {
34543454
/// })
34553455
/// }
34563456
/// ```
3457-
#[clippy::version = "1.72.0"]
3457+
#[clippy::version = "1.73.0"]
34583458
pub FORMAT_COLLECT,
34593459
perf,
34603460
"`format!`ing every element in a collection, then collecting the strings into a new `String`"
@@ -3475,7 +3475,7 @@ declare_clippy_lint! {
34753475
/// let y = v.iter().collect::<Vec<_>>();
34763476
/// assert_eq!(x, y);
34773477
/// ```
3478-
#[clippy::version = "1.72.0"]
3478+
#[clippy::version = "1.73.0"]
34793479
pub ITER_SKIP_ZERO,
34803480
correctness,
34813481
"disallows `.skip(0)`"
@@ -3506,7 +3506,7 @@ declare_clippy_lint! {
35063506
/// # let v = vec![];
35073507
/// _ = v.into_iter().filter(|i| i % 2 == 0).map(|i| really_expensive_fn(i));
35083508
/// ```
3509-
#[clippy::version = "1.72.0"]
3509+
#[clippy::version = "1.73.0"]
35103510
pub FILTER_MAP_BOOL_THEN,
35113511
style,
35123512
"checks for usage of `bool::then` in `Iterator::filter_map`"

clippy_lints/src/needless_pass_by_ref_mut.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ declare_clippy_lint! {
4747
/// 12 + *y
4848
/// }
4949
/// ```
50-
#[clippy::version = "1.72.0"]
50+
#[clippy::version = "1.73.0"]
5151
pub NEEDLESS_PASS_BY_REF_MUT,
5252
nursery,
5353
"using a `&mut` argument when it's not mutated"

clippy_lints/src/non_canonical_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ declare_clippy_lint! {
103103
/// }
104104
/// }
105105
/// ```
106-
#[clippy::version = "1.72.0"]
106+
#[clippy::version = "1.73.0"]
107107
pub NON_CANONICAL_PARTIAL_ORD_IMPL,
108108
suspicious,
109109
"non-canonical implementation of `PartialOrd` on an `Ord` type"

clippy_lints/src/operators/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ declare_clippy_lint! {
312312
/// # let status_code = 200;
313313
/// if status_code <= 400 && status_code > 500 {}
314314
/// ```
315-
#[clippy::version = "1.71.0"]
315+
#[clippy::version = "1.73.0"]
316316
pub IMPOSSIBLE_COMPARISONS,
317317
correctness,
318318
"double comparisons that will never evaluate to `true`"
@@ -332,7 +332,7 @@ declare_clippy_lint! {
332332
/// # let status_code = 200;
333333
/// if status_code <= 400 && status_code < 500 {}
334334
/// ```
335-
#[clippy::version = "1.71.0"]
335+
#[clippy::version = "1.73.0"]
336336
pub REDUNDANT_COMPARISONS,
337337
correctness,
338338
"double comparisons where one of them can be removed"

clippy_lints/src/redundant_locals.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare_clippy_lint! {
3737
/// // no redefinition with the same name
3838
/// }
3939
/// ```
40-
#[clippy::version = "1.72.0"]
40+
#[clippy::version = "1.73.0"]
4141
pub REDUNDANT_LOCALS,
4242
correctness,
4343
"redundant redefinition of a local binding"

0 commit comments

Comments
 (0)