mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Reformat
This commit is contained in:
parent
7bb7c9a1e3
commit
4464354e2e
10 changed files with 42 additions and 21 deletions
|
@ -121,7 +121,10 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnrootedPass {
|
|||
) {
|
||||
let item = match cx.tcx.hir().get_by_hir_id(id) {
|
||||
hir::Node::Item(item) => item,
|
||||
_ => cx.tcx.hir().expect_item_by_hir_id(cx.tcx.hir().get_parent_item(id)),
|
||||
_ => cx
|
||||
.tcx
|
||||
.hir()
|
||||
.expect_item_by_hir_id(cx.tcx.hir().get_parent_item(id)),
|
||||
};
|
||||
if item.attrs.iter().all(|a| !a.check_name("must_root")) {
|
||||
for ref field in def.fields() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue