File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ #![ allow( clippy:: unused_unit, clippy:: missing_safety_doc) ]
1
2
#![ warn( clippy:: too_many_lines) ]
2
3
3
4
fn good_lines ( ) {
@@ -55,7 +56,8 @@ fn good_lines() {
55
56
println ! ( "This is good." ) ;
56
57
}
57
58
58
- fn bad_lines ( ) {
59
+ #[ allow( unused) ] // the attr shouldn't get included in the highlight
60
+ pub async unsafe extern "Rust" fn bad_lines ( ) -> ( ) {
59
61
//~^ too_many_lines
60
62
61
63
println ! ( "Dont get confused by braces: {{}}" ) ;
@@ -164,7 +166,8 @@ fn bad_lines() {
164
166
165
167
struct Foo ;
166
168
impl Foo {
167
- fn bad_lines ( ) {
169
+ #[ allow( unused) ] // the attr shouldn't get included in the highlight
170
+ pub async unsafe extern "Rust" fn bad_lines ( ) -> ( ) {
168
171
//~^ too_many_lines
169
172
170
173
println ! ( "Dont get confused by braces: {{}}" ) ;
You can’t perform that action at this time.
0 commit comments