diff --git a/crates/mun_hir/src/code_model.rs b/crates/mun_hir/src/code_model.rs index 48f119f81..48e9d847f 100644 --- a/crates/mun_hir/src/code_model.rs +++ b/crates/mun_hir/src/code_model.rs @@ -170,7 +170,7 @@ pub struct FnData { } impl FnData { - pub(crate) fn fn_data_query(db: &(impl DefDatabase), func: Function) -> Arc { + pub(crate) fn fn_data_query(db: &impl DefDatabase, func: Function) -> Arc { let src = func.source(db); let mut type_ref_builder = TypeRefBuilder::default(); let name = src diff --git a/crates/mun_hir/src/code_model/src.rs b/crates/mun_hir/src/code_model/src.rs index c900ac1fb..040602d96 100644 --- a/crates/mun_hir/src/code_model/src.rs +++ b/crates/mun_hir/src/code_model/src.rs @@ -16,7 +16,7 @@ pub trait HasSource { impl HasSource for Function { type Ast = ast::FunctionDef; - fn source(self, db: &(impl DefDatabase)) -> Source { + fn source(self, db: &impl DefDatabase) -> Source { self.id.source(db) } }