borrow_deref_ref

This commit is contained in:
Johann Hemmann 2024-01-22 01:54:55 +01:00
parent c4688343de
commit dd9f27b8d3
3 changed files with 3 additions and 4 deletions

View file

@ -167,7 +167,6 @@ new_ret_no_self = "allow"
## Following lints should be tackled at some point ## Following lints should be tackled at some point
borrowed_box = "allow" borrowed_box = "allow"
borrow_deref_ref = "allow"
derived_hash_with_manual_eq = "allow" derived_hash_with_manual_eq = "allow"
field_reassign_with_default = "allow" field_reassign_with_default = "allow"
forget_non_drop = "allow" forget_non_drop = "allow"

View file

@ -1924,7 +1924,7 @@ impl ModCollector<'_, '_> {
item_tree: self.item_tree, item_tree: self.item_tree,
mod_dir, mod_dir,
} }
.collect_in_top_module(&*items); .collect_in_top_module(items);
if is_macro_use { if is_macro_use {
self.import_all_legacy_macros(module_id); self.import_all_legacy_macros(module_id);
} }

View file

@ -41,13 +41,13 @@ impl Default for TestDB {
impl Upcast<dyn ExpandDatabase> for TestDB { impl Upcast<dyn ExpandDatabase> for TestDB {
fn upcast(&self) -> &(dyn ExpandDatabase + 'static) { fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
&*self self
} }
} }
impl Upcast<dyn DefDatabase> for TestDB { impl Upcast<dyn DefDatabase> for TestDB {
fn upcast(&self) -> &(dyn DefDatabase + 'static) { fn upcast(&self) -> &(dyn DefDatabase + 'static) {
&*self self
} }
} }