mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
Add nested
bool to DefKind::Static
.
Will be used in the next commit
This commit is contained in:
parent
b205192f65
commit
013bf92dcc
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ fn collect_unsafe_exprs<'tcx>(
|
|||
ExprKind::Path(QPath::Resolved(
|
||||
_,
|
||||
hir::Path {
|
||||
res: Res::Def(DefKind::Static{mt:Mutability::Mut}, _),
|
||||
res: Res::Def(DefKind::Static{mt:Mutability::Mut, ..}, _),
|
||||
..
|
||||
},
|
||||
)) => {
|
||||
|
@ -149,7 +149,7 @@ fn collect_unsafe_exprs<'tcx>(
|
|||
ExprKind::Path(QPath::Resolved(
|
||||
_,
|
||||
hir::Path {
|
||||
res: Res::Def(DefKind::Static{mt:Mutability::Mut}, _),
|
||||
res: Res::Def(DefKind::Static{mt:Mutability::Mut, ..}, _),
|
||||
..
|
||||
}
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue