File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ fn transform_block(
450
450
clippy:: missing_docs_in_private_items,
451
451
clippy:: needless_lifetimes,
452
452
clippy:: ptr_arg,
453
+ clippy:: trivially_copy_pass_by_ref,
453
454
clippy:: type_repetition_in_bounds,
454
455
clippy:: used_underscore_binding,
455
456
) ]
Original file line number Diff line number Diff line change @@ -961,3 +961,20 @@ mod issue110 {
961
961
async fn load ( & self , _key : & str ) { }
962
962
}
963
963
}
964
+
965
+ // https://github.com/dtolnay/async-trait/issues/120
966
+ mod issue120 {
967
+ #![ deny( clippy:: trivially_copy_pass_by_ref) ]
968
+
969
+ use async_trait:: async_trait;
970
+
971
+ #[ async_trait]
972
+ trait Trait {
973
+ async fn f ( & self ) ;
974
+ }
975
+
976
+ #[ async_trait]
977
+ impl Trait for ( ) {
978
+ async fn f ( & self ) { }
979
+ }
980
+ }
You can’t perform that action at this time.
0 commit comments