Skip to content

Commit 98ecce7

Browse files
committed
Remove author_lint from ui test
1 parent 73c5ade commit 98ecce7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/ui/use_last.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
fn dont_use_last() -> Option<i32> {
55
let x = vec![2, 3, 5];
6-
#[clippy::author]
76
let last_element = x.get(x.len() - 1); // ~ERROR Use _.last()
87
last_element.map(|val| val + 1) // To avoid warnings
98
}
@@ -15,7 +14,6 @@ fn index_into_last() -> i32 {
1514
}
1615

1716
fn main() {
18-
// let expected_value: &i32 = &5;
1917
let expected_value: i32 = 5;
2018
assert_eq!(dont_use_last(), Some(expected_value));
2119
assert_eq!(index_into_last(), 5);

0 commit comments

Comments
 (0)