Skip to content

Commit

Permalink
Rename all_crate_nums query to crates and remove useless wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Jul 1, 2021
1 parent abc9a46 commit 59cf7e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ pub fn path_to_res(cx: &LateContext<'_>, path: &[&str]) -> Res {
_ => return Res::Err,
};
let tcx = cx.tcx;
let crates = tcx.crates();
let crates = tcx.crates(());
let krate = try_res!(crates.iter().find(|&&num| tcx.crate_name(num).as_str() == krate));
let first = try_res!(item_child_by_name(tcx, krate.as_def_id(), first));
let last = path
Expand Down

0 comments on commit 59cf7e3

Please sign in to comment.