mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Merge fixes
This commit is contained in:
parent
b29aacfec8
commit
53094de08e
5 changed files with 6 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
|
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
|
||||||
|
|
||||||
[There are 351 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
|
[There are 352 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
|
||||||
|
|
||||||
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
|
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ pub use lint::Lint;
|
||||||
pub use lint::LINT_LEVELS;
|
pub use lint::LINT_LEVELS;
|
||||||
|
|
||||||
// begin lint list, do not remove this comment, it’s used in `update_lints`
|
// begin lint list, do not remove this comment, it’s used in `update_lints`
|
||||||
pub const ALL_LINTS: [Lint; 351] = [
|
pub const ALL_LINTS: [Lint; 352] = [
|
||||||
Lint {
|
Lint {
|
||||||
name: "absurd_extreme_comparisons",
|
name: "absurd_extreme_comparisons",
|
||||||
group: "correctness",
|
group: "correctness",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// run-rustfix
|
// run-rustfix
|
||||||
|
#![allow(clippy::match_single_binding)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!();
|
println!();
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// run-rustfix
|
// run-rustfix
|
||||||
|
#![allow(clippy::match_single_binding)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!();
|
println!();
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error: using `println!("")`
|
error: using `println!("")`
|
||||||
--> $DIR/println_empty_string.rs:5:5
|
--> $DIR/println_empty_string.rs:6:5
|
||||||
|
|
|
|
||||||
LL | println!("");
|
LL | println!("");
|
||||||
| ^^^^^^^^^^^^ help: replace it with: `println!()`
|
| ^^^^^^^^^^^^ help: replace it with: `println!()`
|
||||||
|
@ -7,7 +7,7 @@ LL | println!("");
|
||||||
= note: `-D clippy::println-empty-string` implied by `-D warnings`
|
= note: `-D clippy::println-empty-string` implied by `-D warnings`
|
||||||
|
|
||||||
error: using `println!("")`
|
error: using `println!("")`
|
||||||
--> $DIR/println_empty_string.rs:8:14
|
--> $DIR/println_empty_string.rs:9:14
|
||||||
|
|
|
|
||||||
LL | _ => println!(""),
|
LL | _ => println!(""),
|
||||||
| ^^^^^^^^^^^^ help: replace it with: `println!()`
|
| ^^^^^^^^^^^^ help: replace it with: `println!()`
|
||||||
|
|
Loading…
Add table
Reference in a new issue