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) {
112
112
fn lint_suppress_with_body ( ) -> Attribute {
113
113
parse_quote ! {
114
114
#[ allow(
115
+ clippy:: type_complexity,
115
116
clippy:: type_repetition_in_bounds,
116
117
clippy:: used_underscore_binding
117
118
) ]
@@ -120,7 +121,10 @@ fn lint_suppress_with_body() -> Attribute {
120
121
121
122
fn lint_suppress_without_body ( ) -> Attribute {
122
123
parse_quote ! {
123
- #[ allow( clippy:: type_repetition_in_bounds) ]
124
+ #[ allow(
125
+ clippy:: type_complexity,
126
+ clippy:: type_repetition_in_bounds
127
+ ) ]
124
128
}
125
129
}
126
130
Original file line number Diff line number Diff line change @@ -1218,3 +1218,18 @@ pub mod drop_order {
1218
1218
assert ! ( !flag. load( Ordering :: Acquire ) ) ;
1219
1219
}
1220
1220
}
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