Skip to content

Commit 83af0e5

Browse files
committed
Update version attribute for 1.77 lints
1 parent b5dcaae commit 83af0e5

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,7 +2863,7 @@ declare_clippy_lint! {
28632863
///
28642864
/// OpenOptions::new().create(true).truncate(true);
28652865
/// ```
2866-
#[clippy::version = "1.75.0"]
2866+
#[clippy::version = "1.77.0"]
28672867
pub SUSPICIOUS_OPEN_OPTIONS,
28682868
suspicious,
28692869
"suspicious combination of options for opening a file"
@@ -3817,7 +3817,7 @@ declare_clippy_lint! {
38173817
/// ```no_run
38183818
/// let _ = std::iter::empty::<Result<i32, ()>>().flatten();
38193819
/// ```
3820-
#[clippy::version = "1.76.0"]
3820+
#[clippy::version = "1.77.0"]
38213821
pub RESULT_FILTER_MAP,
38223822
complexity,
38233823
"filtering `Result` for `Ok` then force-unwrapping, which can be one type-safe operation"
@@ -3843,7 +3843,7 @@ declare_clippy_lint! {
38433843
/// // example code which does not raise clippy warning
38443844
/// vec![Some(1)].into_iter().flatten();
38453845
/// ```
3846-
#[clippy::version = "1.76.0"]
3846+
#[clippy::version = "1.77.0"]
38473847
pub ITER_FILTER_IS_SOME,
38483848
pedantic,
38493849
"filtering an iterator over `Option`s for `Some` can be achieved with `flatten`"
@@ -3869,7 +3869,7 @@ declare_clippy_lint! {
38693869
/// // example code which does not raise clippy warning
38703870
/// vec![Ok::<i32, String>(1)].into_iter().flatten();
38713871
/// ```
3872-
#[clippy::version = "1.76.0"]
3872+
#[clippy::version = "1.77.0"]
38733873
pub ITER_FILTER_IS_OK,
38743874
pedantic,
38753875
"filtering an iterator over `Result`s for `Ok` can be achieved with `flatten`"
@@ -3896,7 +3896,7 @@ declare_clippy_lint! {
38963896
/// option.is_some_and(|a| a > 10);
38973897
/// result.is_ok_and(|a| a > 10);
38983898
/// ```
3899-
#[clippy::version = "1.76.0"]
3899+
#[clippy::version = "1.77.0"]
39003900
pub MANUAL_IS_VARIANT_AND,
39013901
pedantic,
39023902
"using `.map(f).unwrap_or_default()`, which is more succinctly expressed as `is_some_and(f)` or `is_ok_and(f)`"
@@ -3926,7 +3926,7 @@ declare_clippy_lint! {
39263926
/// `"\r\n"`), for example during the parsing of a specific file format in which precisely one newline type is
39273927
/// valid.
39283928
/// ```
3929-
#[clippy::version = "1.76.0"]
3929+
#[clippy::version = "1.77.0"]
39303930
pub STR_SPLIT_AT_NEWLINE,
39313931
pedantic,
39323932
"splitting a trimmed string at hard-coded newlines"

clippy_lints/src/thread_local_initializer_can_be_made_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare_clippy_lint! {
3737
/// static BUF: String = const { String::new() };
3838
/// }
3939
/// ```
40-
#[clippy::version = "1.76.0"]
40+
#[clippy::version = "1.77.0"]
4141
pub THREAD_LOCAL_INITIALIZER_CAN_BE_MADE_CONST,
4242
perf,
4343
"suggest using `const` in `thread_local!` macro"

clippy_lints/src/transmute/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ declare_clippy_lint! {
514514
/// ^^^^ ^^ `bool::then` only executes the closure if the condition is true!
515515
/// }
516516
/// ```
517-
#[clippy::version = "1.76.0"]
517+
#[clippy::version = "1.77.0"]
518518
pub EAGER_TRANSMUTE,
519519
correctness,
520520
"eager evaluation of `transmute`"

clippy_lints/src/unconditional_recursion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ declare_clippy_lint! {
4242
/// Use instead:
4343
///
4444
/// In such cases, either use `#[derive(PartialEq)]` or don't implement it.
45-
#[clippy::version = "1.76.0"]
45+
#[clippy::version = "1.77.0"]
4646
pub UNCONDITIONAL_RECURSION,
4747
suspicious,
4848
"detect unconditional recursion in some traits implementation"

0 commit comments

Comments
 (0)