Skip to content

Commit 833937a

Browse files
committed
give the test functions more complex signatures
1 parent 9ea90b3 commit 833937a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/ui/functions_maxlines.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::unused_unit, clippy::missing_safety_doc)]
12
#![warn(clippy::too_many_lines)]
23

34
fn good_lines() {
@@ -55,7 +56,8 @@ fn good_lines() {
5556
println!("This is good.");
5657
}
5758

58-
fn bad_lines() {
59+
#[allow(unused)]
60+
pub async unsafe extern "Rust" fn bad_lines() -> () {
5961
//~^ too_many_lines
6062

6163
println!("Dont get confused by braces: {{}}");
@@ -164,7 +166,8 @@ fn bad_lines() {
164166

165167
struct Foo;
166168
impl Foo {
167-
fn bad_lines() {
169+
#[allow(unused)]
170+
pub async unsafe extern "Rust" fn bad_lines() -> () {
168171
//~^ too_many_lines
169172

170173
println!("Dont get confused by braces: {{}}");

0 commit comments

Comments
 (0)