dogfood
This commit is contained in:
parent
d4758420e6
commit
94b36d9ca4
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user