mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
needless_lifetimes
This commit is contained in:
parent
3839f9a9a2
commit
a342e936e3
2 changed files with 1 additions and 2 deletions
|
@ -176,7 +176,6 @@ forget_non_drop = "allow"
|
||||||
format_collect = "allow"
|
format_collect = "allow"
|
||||||
large_enum_variant = "allow"
|
large_enum_variant = "allow"
|
||||||
needless_doctest_main = "allow"
|
needless_doctest_main = "allow"
|
||||||
needless_lifetimes = "allow"
|
|
||||||
needless_pass_by_value = "allow"
|
needless_pass_by_value = "allow"
|
||||||
needless_return = "allow"
|
needless_return = "allow"
|
||||||
new_without_default = "allow"
|
new_without_default = "allow"
|
||||||
|
|
|
@ -509,7 +509,7 @@ impl Resolver {
|
||||||
.map(|id| ExternCrateDeclData::extern_crate_decl_data_query(db, id).name.clone())
|
.map(|id| ExternCrateDeclData::extern_crate_decl_data_query(db, id).name.clone())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn extern_crates_in_scope<'a>(&'a self) -> impl Iterator<Item = (Name, ModuleId)> + 'a {
|
pub fn extern_crates_in_scope(&self) -> impl Iterator<Item = (Name, ModuleId)> + '_ {
|
||||||
self.module_scope
|
self.module_scope
|
||||||
.def_map
|
.def_map
|
||||||
.extern_prelude()
|
.extern_prelude()
|
||||||
|
|
Loading…
Reference in a new issue