mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -20,7 +20,7 @@ pub(crate) fn macro_error(ctx: &DiagnosticsContext<'_>, d: &hir::MacroError) ->
|
|||
pub(crate) fn macro_def_error(ctx: &DiagnosticsContext<'_>, d: &hir::MacroDefError) -> Diagnostic {
|
||||
// Use more accurate position if available.
|
||||
let display_range =
|
||||
ctx.resolve_precise_location(&d.node.clone().map(|it| it.syntax_node_ptr()), d.name);
|
||||
ctx.resolve_precise_location(&d.node.map(|it| it.syntax_node_ptr()), d.name);
|
||||
Diagnostic::new(
|
||||
DiagnosticCode::Ra("macro-def-error", Severity::Error),
|
||||
d.message.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue