Skip to content

Commit dd9f27b

Browse files
committed
borrow_deref_ref
1 parent c468834 commit dd9f27b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ new_ret_no_self = "allow"
167167

168168
## Following lints should be tackled at some point
169169
borrowed_box = "allow"
170-
borrow_deref_ref = "allow"
171170
derived_hash_with_manual_eq = "allow"
172171
field_reassign_with_default = "allow"
173172
forget_non_drop = "allow"

crates/hir-def/src/nameres/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ impl ModCollector<'_, '_> {
19241924
item_tree: self.item_tree,
19251925
mod_dir,
19261926
}
1927-
.collect_in_top_module(&*items);
1927+
.collect_in_top_module(items);
19281928
if is_macro_use {
19291929
self.import_all_legacy_macros(module_id);
19301930
}

crates/hir-def/src/test_db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ impl Default for TestDB {
4141

4242
impl Upcast<dyn ExpandDatabase> for TestDB {
4343
fn upcast(&self) -> &(dyn ExpandDatabase + 'static) {
44-
&*self
44+
self
4545
}
4646
}
4747

4848
impl Upcast<dyn DefDatabase> for TestDB {
4949
fn upcast(&self) -> &(dyn DefDatabase + 'static) {
50-
&*self
50+
self
5151
}
5252
}
5353

0 commit comments

Comments
 (0)