]> git.lizzy.rs Git - rust.git/commitdiff
Update version attribute for 1.66 lints
authorxFrednet <xFrednet@gmail.com>
Tue, 13 Dec 2022 17:29:22 +0000 (18:29 +0100)
committerxFrednet <xFrednet@gmail.com>
Tue, 13 Dec 2022 22:36:47 +0000 (23:36 +0100)
clippy_lints/src/box_default.rs
clippy_lints/src/casts/mod.rs
clippy_lints/src/disallowed_macros.rs
clippy_lints/src/format_args.rs
clippy_lints/src/implicit_saturating_add.rs
clippy_lints/src/methods/mod.rs

index 36daceabe0bea61a034aeac4dd894cbcff834eb0..91900542af8330e52d72655efb34be044bbfbbf5 100644 (file)
@@ -30,7 +30,7 @@
     /// ```rust
     /// let x: Box<String> = Box::default();
     /// ```
-    #[clippy::version = "1.65.0"]
+    #[clippy::version = "1.66.0"]
     pub BOX_DEFAULT,
     perf,
     "Using Box::new(T::default()) instead of Box::default()"
index c6d505c4a181fc2e3b52c2be3b1d713f7123eec2..161e3a698e9ea6133ba0d6a86e2ad70983d7dbf8 100644 (file)
     /// ```rust,ignore
     /// let _: = 0_u64;
     /// ```
-    #[clippy::version = "1.64.0"]
+    #[clippy::version = "1.66.0"]
     pub CAST_NAN_TO_INT,
     suspicious,
     "casting a known floating-point NaN into an integer"
index 68122b4cef577fede678085f08f58baa9181cbe1..1971cab64ef38a8f01890c1cd8394f7bd238af96 100644 (file)
@@ -47,7 +47,7 @@
     ///     value: usize,
     /// }
     /// ```
-    #[clippy::version = "1.65.0"]
+    #[clippy::version = "1.66.0"]
     pub DISALLOWED_MACROS,
     style,
     "use of a disallowed macro"
index f0995a81329d93f30db25ccdf800ae8467c1c787..08976bde88294c6c8227400c43669b9fffd54c8d 100644 (file)
     ///
     /// If a format string contains a numbered argument that cannot be inlined
     /// 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,
     style,
     "using non-inlined variables in `format!` calls"
index bf1351829c6a5e2e61755dc873df6494e5009ab5..6e19343931ecb846bc9d9ece97efd37c9f27683b 100644 (file)
@@ -31,7 +31,7 @@
     ///
     /// u = u.saturating_add(1);
     /// ```
-    #[clippy::version = "1.65.0"]
+    #[clippy::version = "1.66.0"]
     pub IMPLICIT_SATURATING_ADD,
     style,
     "Perform saturating addition instead of implicitly checking max bound of data type"
index d2913680cbb742a11db2439aa668aff4d0a979c0..30883ba8d0513bc5724db542c941e0fa10d77f53 100644 (file)
     /// let map: HashMap<u32, u32> = HashMap::new();
     /// let values = map.values().collect::<Vec<_>>();
     /// ```
-    #[clippy::version = "1.65.0"]
+    #[clippy::version = "1.66.0"]
     pub ITER_KV_MAP,
     complexity,
     "iterating on map using `iter` when `keys` or `values` would do"