Skip to content

Commit

Permalink
fix(hir): resolve cargo errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodann committed Nov 6, 2019
1 parent 63b2605 commit fb43492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/mun_hir/src/code_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub struct FnData {
}

impl FnData {
pub(crate) fn fn_data_query(db: &(impl DefDatabase), func: Function) -> Arc<FnData> {
pub(crate) fn fn_data_query(db: &impl DefDatabase, func: Function) -> Arc<FnData> {
let src = func.source(db);
let mut type_ref_builder = TypeRefBuilder::default();
let name = src
Expand Down
2 changes: 1 addition & 1 deletion crates/mun_hir/src/code_model/src.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub trait HasSource {

impl HasSource for Function {
type Ast = ast::FunctionDef;
fn source(self, db: &(impl DefDatabase)) -> Source<ast::FunctionDef> {
fn source(self, db: &impl DefDatabase) -> Source<ast::FunctionDef> {
self.id.source(db)
}
}
Expand Down

0 comments on commit fb43492

Please sign in to comment.