File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ pub fn expand(input: &mut Item, is_local: bool) {
112112fn lint_suppress_with_body ( ) -> Attribute {
113113 parse_quote ! {
114114 #[ allow(
115+ clippy:: type_complexity,
115116 clippy:: type_repetition_in_bounds,
116117 clippy:: used_underscore_binding
117118 ) ]
@@ -120,7 +121,10 @@ fn lint_suppress_with_body() -> Attribute {
120121
121122fn lint_suppress_without_body ( ) -> Attribute {
122123 parse_quote ! {
123- #[ allow( clippy:: type_repetition_in_bounds) ]
124+ #[ allow(
125+ clippy:: type_complexity,
126+ clippy:: type_repetition_in_bounds
127+ ) ]
124128 }
125129}
126130
Original file line number Diff line number Diff line change @@ -1218,3 +1218,18 @@ pub mod drop_order {
12181218 assert ! ( !flag. load( Ordering :: Acquire ) ) ;
12191219 }
12201220}
1221+
1222+ // https://github.com/dtolnay/async-trait/issues/145
1223+ pub mod issue145 {
1224+ #![ deny( clippy:: type_complexity) ]
1225+
1226+ use async_trait:: async_trait;
1227+
1228+ #[ async_trait]
1229+ pub trait ManageConnection : Sized + Send + Sync + ' static {
1230+ type Connection : Send + ' static ;
1231+ type Error : Send + ' static ;
1232+
1233+ async fn connect ( & self ) -> Result < Self :: Connection , Self :: Error > ;
1234+ }
1235+ }
You can’t perform that action at this time.
0 commit comments