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 {
kind: ItemKind::Fn(ref sig, ..),
..
}) => sig.header.constness == Constness::Const,
Node::ImplItem(&ImplItem {
})
| Node::ImplItem(&ImplItem {
kind: ImplItemKind::Method(ref sig, _),
..
}) => sig.header.constness == Constness::Const,