mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Update version attribute for 1.66 lints
This commit is contained in:
parent
12074808c7
commit
2532c56d86
6 changed files with 6 additions and 6 deletions
|
@ -30,7 +30,7 @@ declare_clippy_lint! {
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// let x: Box<String> = Box::default();
|
/// let x: Box<String> = Box::default();
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.65.0"]
|
#[clippy::version = "1.66.0"]
|
||||||
pub BOX_DEFAULT,
|
pub BOX_DEFAULT,
|
||||||
perf,
|
perf,
|
||||||
"Using Box::new(T::default()) instead of Box::default()"
|
"Using Box::new(T::default()) instead of Box::default()"
|
||||||
|
|
|
@ -641,7 +641,7 @@ declare_clippy_lint! {
|
||||||
/// ```rust,ignore
|
/// ```rust,ignore
|
||||||
/// let _: = 0_u64;
|
/// let _: = 0_u64;
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.64.0"]
|
#[clippy::version = "1.66.0"]
|
||||||
pub CAST_NAN_TO_INT,
|
pub CAST_NAN_TO_INT,
|
||||||
suspicious,
|
suspicious,
|
||||||
"casting a known floating-point NaN into an integer"
|
"casting a known floating-point NaN into an integer"
|
||||||
|
|
|
@ -47,7 +47,7 @@ declare_clippy_lint! {
|
||||||
/// value: usize,
|
/// value: usize,
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.65.0"]
|
#[clippy::version = "1.66.0"]
|
||||||
pub DISALLOWED_MACROS,
|
pub DISALLOWED_MACROS,
|
||||||
style,
|
style,
|
||||||
"use of a disallowed macro"
|
"use of a disallowed macro"
|
||||||
|
|
|
@ -122,7 +122,7 @@ declare_clippy_lint! {
|
||||||
///
|
///
|
||||||
/// If a format string contains a numbered argument that cannot be inlined
|
/// If a format string contains a numbered argument that cannot be inlined
|
||||||
/// nothing will be suggested, e.g. `println!("{0}={1}", var, 1+2)`.
|
/// nothing will be suggested, e.g. `println!("{0}={1}", var, 1+2)`.
|
||||||
#[clippy::version = "1.65.0"]
|
#[clippy::version = "1.66.0"]
|
||||||
pub UNINLINED_FORMAT_ARGS,
|
pub UNINLINED_FORMAT_ARGS,
|
||||||
style,
|
style,
|
||||||
"using non-inlined variables in `format!` calls"
|
"using non-inlined variables in `format!` calls"
|
||||||
|
|
|
@ -31,7 +31,7 @@ declare_clippy_lint! {
|
||||||
///
|
///
|
||||||
/// u = u.saturating_add(1);
|
/// u = u.saturating_add(1);
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.65.0"]
|
#[clippy::version = "1.66.0"]
|
||||||
pub IMPLICIT_SATURATING_ADD,
|
pub IMPLICIT_SATURATING_ADD,
|
||||||
style,
|
style,
|
||||||
"Perform saturating addition instead of implicitly checking max bound of data type"
|
"Perform saturating addition instead of implicitly checking max bound of data type"
|
||||||
|
|
|
@ -3059,7 +3059,7 @@ declare_clippy_lint! {
|
||||||
/// let map: HashMap<u32, u32> = HashMap::new();
|
/// let map: HashMap<u32, u32> = HashMap::new();
|
||||||
/// let values = map.values().collect::<Vec<_>>();
|
/// let values = map.values().collect::<Vec<_>>();
|
||||||
/// ```
|
/// ```
|
||||||
#[clippy::version = "1.65.0"]
|
#[clippy::version = "1.66.0"]
|
||||||
pub ITER_KV_MAP,
|
pub ITER_KV_MAP,
|
||||||
complexity,
|
complexity,
|
||||||
"iterating on map using `iter` when `keys` or `values` would do"
|
"iterating on map using `iter` when `keys` or `values` would do"
|
||||||
|
|
Loading…
Reference in a new issue