mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
toplevel_ref_arg
This commit is contained in:
parent
386d438e17
commit
daa20725c5
@ -180,7 +180,6 @@ non_canonical_clone_impl = "allow"
|
||||
non_canonical_partial_ord_impl = "allow"
|
||||
self_named_constructors = "allow"
|
||||
too_many_arguments = "allow"
|
||||
toplevel_ref_arg = "allow"
|
||||
type_complexity = "allow"
|
||||
unnecessary_cast = "allow"
|
||||
unnecessary_filter_map = "allow"
|
||||
|
@ -396,7 +396,7 @@ impl Query {
|
||||
pub fn search_dependencies(
|
||||
db: &dyn DefDatabase,
|
||||
krate: CrateId,
|
||||
ref query: Query,
|
||||
query: &Query,
|
||||
) -> FxHashSet<ItemInNs> {
|
||||
let _p = tracing::span!(tracing::Level::INFO, "search_dependencies", ?query).entered();
|
||||
|
||||
@ -516,7 +516,7 @@ mod tests {
|
||||
})
|
||||
.expect("could not find crate");
|
||||
|
||||
let actual = search_dependencies(db.upcast(), krate, query)
|
||||
let actual = search_dependencies(db.upcast(), krate, &query)
|
||||
.into_iter()
|
||||
.filter_map(|dependency| {
|
||||
let dependency_krate = dependency.krate(db.upcast())?;
|
||||
|
@ -236,7 +236,7 @@ impl Crate {
|
||||
query: import_map::Query,
|
||||
) -> impl Iterator<Item = Either<ModuleDef, Macro>> {
|
||||
let _p = tracing::span!(tracing::Level::INFO, "query_external_importables");
|
||||
import_map::search_dependencies(db, self.into(), query).into_iter().map(|item| {
|
||||
import_map::search_dependencies(db, self.into(), &query).into_iter().map(|item| {
|
||||
match ItemInNs::from(item) {
|
||||
ItemInNs::Types(mod_id) | ItemInNs::Values(mod_id) => Either::Left(mod_id),
|
||||
ItemInNs::Macros(mac_id) => Either::Right(mac_id),
|
||||
|
Loading…
Reference in New Issue
Block a user