This commit is contained in:
HMPerson1 2019-11-08 15:41:54 -05:00
parent d4758420e6
commit 94b36d9ca4
No known key found for this signature in database
GPG Key ID: 1FB477DDD27821CE

View File

@ -89,8 +89,8 @@ pub fn in_constant(cx: &LateContext<'_, '_>, id: HirId) -> bool {
Node::Item(&Item { Node::Item(&Item {
kind: ItemKind::Fn(ref sig, ..), kind: ItemKind::Fn(ref sig, ..),
.. ..
}) => sig.header.constness == Constness::Const, })
Node::ImplItem(&ImplItem { | Node::ImplItem(&ImplItem {
kind: ImplItemKind::Method(ref sig, _), kind: ImplItemKind::Method(ref sig, _),
.. ..
}) => sig.header.constness == Constness::Const, }) => sig.header.constness == Constness::Const,