Changelog for Clippy 1.87
This commit is contained in:
parent
689e62b3b2
commit
55b5c835c5
6 changed files with 105 additions and 7 deletions
|
|
@ -4428,7 +4428,7 @@ declare_clippy_lint! {
|
|||
/// let file = BufReader::new(std::fs::File::open("./bytes.txt").unwrap());
|
||||
/// file.bytes();
|
||||
/// ```
|
||||
#[clippy::version = "1.86.0"]
|
||||
#[clippy::version = "1.87.0"]
|
||||
pub UNBUFFERED_BYTES,
|
||||
perf,
|
||||
"calling .bytes() is very inefficient when data is not in memory"
|
||||
|
|
@ -4453,7 +4453,7 @@ declare_clippy_lint! {
|
|||
/// values.contains(&10)
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "1.86.0"]
|
||||
#[clippy::version = "1.87.0"]
|
||||
pub MANUAL_CONTAINS,
|
||||
perf,
|
||||
"unnecessary `iter().any()` on slices that can be replaced with `contains()`"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue