Skip to content

Commit 864dfbd

Browse files
committed
Try to get test to work (didn't)
1 parent f9b3a3f commit 864dfbd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

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

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

10-
[There are 297 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
10+
[There are 298 lints included in this crate!](https://rust-lang.github.io/rust-clippy/master/index.html)
1111

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

tests/ui/use_last.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ fn index_into_last() -> i32 {
1515
fn main() {
1616
let expected_value: i32 = 5;
1717
assert_eq!(dont_use_last(), Some(expected_value));
18-
assert_eq!(index_into_last(), 5);
18+
assert_eq!(index_into_last(), expected_value);
1919
}

tests/ui/use_last.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
error: there should be some output to this lint but there wasn't

0 commit comments

Comments
 (0)