From ebb10da563f1c3a0ebf48c1022bceb9641b6e964 Mon Sep 17 00:00:00 2001 From: brandondong Date: Mon, 15 Mar 2021 11:16:58 -0700 Subject: Update crates/hir_def/src/nameres/collector.rs Co-authored-by: Jonas Schievink --- crates/hir_def/src/nameres/collector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs index 9590b8ce3..81cf652b0 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs @@ -1486,7 +1486,7 @@ impl ModCollector<'_, '_> { self.def_collector.def_map.diagnostics.push(DefDiagnostic::macro_error( self.module_id, MacroCallKind::FnLike(ast_id.ast_id), - error.map(|e| e.to_string()).unwrap_or_else(|| String::from("macro error")), + error.unwrap().to_string(), )); return; } -- cgit v1.2.3