Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 53094de

Browse files
committed
Merge fixes
1 parent b29aacf commit 53094de

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
A collection of lints to catch common mistakes and improve your [Rust](https://github.com/rust-lang/rust) code.
88

9-
[There are 351 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
9+
[There are 352 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
1010

1111
We have a bunch of lint categories to allow you to choose how much Clippy is supposed to ~~annoy~~ help you:
1212

src/lintlist/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub use lint::Lint;
66
pub use lint::LINT_LEVELS;
77

88
// begin lint list, do not remove this comment, it’s used in `update_lints`
9-
pub const ALL_LINTS: [Lint; 351] = [
9+
pub const ALL_LINTS: [Lint; 352] = [
1010
Lint {
1111
name: "absurd_extreme_comparisons",
1212
group: "correctness",

tests/ui/println_empty_string.fixed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-rustfix
2+
#![allow(clippy::match_single_binding)]
23

34
fn main() {
45
println!();

tests/ui/println_empty_string.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-rustfix
2+
#![allow(clippy::match_single_binding)]
23

34
fn main() {
45
println!();

tests/ui/println_empty_string.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: using `println!("")`
2-
--> $DIR/println_empty_string.rs:5:5
2+
--> $DIR/println_empty_string.rs:6:5
33
|
44
LL | println!("");
55
| ^^^^^^^^^^^^ help: replace it with: `println!()`
66
|
77
= note: `-D clippy::println-empty-string` implied by `-D warnings`
88

99
error: using `println!("")`
10-
--> $DIR/println_empty_string.rs:8:14
10+
--> $DIR/println_empty_string.rs:9:14
1111
|
1212
LL | _ => println!(""),
1313
| ^^^^^^^^^^^^ help: replace it with: `println!()`

0 commit comments

Comments
 (0)