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) ]
12#![ warn( clippy:: too_many_lines) ]
23
34fn good_lines ( ) {
@@ -55,7 +56,8 @@ fn good_lines() {
5556 println ! ( "This is good." ) ;
5657}
5758
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 ( ) -> ( ) {
5961 //~^ too_many_lines
6062
6163 println ! ( "Dont get confused by braces: {{}}" ) ;
@@ -164,7 +166,8 @@ fn bad_lines() {
164166
165167struct Foo ;
166168impl 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 ( ) -> ( ) {
168171 //~^ too_many_lines
169172
170173 println ! ( "Dont get confused by braces: {{}}" ) ;
You can’t perform that action at this time.
0 commit comments