Skip to content

Commit 300f11d

Browse files
committed
fix clippy
1 parent 63c0103 commit 300f11d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

crates/bevy_api_gen/src/passes/populate_template_data.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,8 @@ fn ty_to_string<'tcx>(ctxt: &BevyCtxt<'tcx>, ty: Ty<'tcx>, proxy_types: bool) ->
240240

241241
trace!("Checking ADT: `{}`.", ctxt.tcx.item_name(def_id),);
242242

243-
let contains = ctxt.meta_loader.one_of_meta_files_contains(
244-
&meta_sources,
245-
None,
246-
def_path_hash,
247-
);
248-
249-
contains
243+
ctxt.meta_loader
244+
.one_of_meta_files_contains(&meta_sources, None, def_path_hash)
250245
})
251246
.is_some_and(identity)
252247
}),

0 commit comments

Comments
 (0)