Skip to content

Commit b39e9e2

Browse files
committed
Change from _ to None
1 parent d04f756 commit b39e9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl EarlyLintPass for UnsafeCode {
280280
}
281281

282282
fn check_trait_item(&mut self, cx: &EarlyContext, item: &ast::TraitItem) {
283-
if let ast::TraitItemKind::Method(ref sig, _) = item.node {
283+
if let ast::TraitItemKind::Method(ref sig, None) = item.node {
284284
if sig.header.unsafety == ast::Unsafety::Unsafe {
285285
self.report_unsafe(cx, item.span, "declaration of an `unsafe` method")
286286
}

0 commit comments

Comments
 (0)