Clippy-fix explicit auto-deref
Seems like these can be safely fixed. With one, I was particularly surprised -- `Some(pats) => &**pats,` in body.rs? ``` cargo clippy --fix -- -A clippy::all -D clippy::explicit_auto_deref ```
This commit is contained in:
@@ -1246,7 +1246,7 @@ impl<'db> SemanticsImpl<'db> {
|
||||
|
||||
fn with_ctx<F: FnOnce(&mut SourceToDefCtx<'_, '_>) -> T, T>(&self, f: F) -> T {
|
||||
let mut cache = self.s2d_cache.borrow_mut();
|
||||
let mut ctx = SourceToDefCtx { db: self.db, cache: &mut *cache };
|
||||
let mut ctx = SourceToDefCtx { db: self.db, cache: &mut cache };
|
||||
f(&mut ctx)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user