]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/get_last_with_len.rs
Rollup merge of #91562 - dtolnay:asyncspace, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / clippy_lints / src / get_last_with_len.rs
index f3929b0f1e617fd0ad2740c889d81afc817d8da7..edca701869e0fc2eb89dd14574a9700957f414df 100644 (file)
@@ -39,6 +39,7 @@
     /// let x = vec![2, 3, 5];
     /// let last_element = x.last();
     /// ```
+    #[clippy::version = "1.37.0"]
     pub GET_LAST_WITH_LEN,
     complexity,
     "Using `x.get(x.len() - 1)` when `x.last()` is correct and simpler"