This commit is contained in:
Yuki Okushi 2020-02-19 10:43:49 +09:00
parent fe0f6c6e17
commit 79c0cf0cc9
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ impl EarlyLintPass for ExcessiveBools {
}
| ItemKind::Trait(_, _, _, _, items) => {
for item in items {
if let AssocItemKind::Fn(fn_sig, _) = &item.kind {
if let AssocItemKind::Fn(fn_sig, _, _) = &item.kind {
self.check_fn_sig(cx, fn_sig, item.span);
}
}

View file

@ -358,7 +358,7 @@ impl EarlyLintPass for NonExpressiveNames {
}
fn check_impl_item(&mut self, cx: &EarlyContext<'_>, item: &AssocItem) {
if let AssocItemKind::Fn(ref sig, Some(ref blk)) = item.kind {
if let AssocItemKind::Fn(ref sig, _, Some(ref blk)) = item.kind {
do_check(self, cx, &item.attrs, &sig.decl, blk);
}
}