mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -31,7 +31,7 @@ pub(crate) fn inactive_code(
|
|||
let res = Diagnostic::new(
|
||||
DiagnosticCode::Ra("inactive-code", Severity::WeakWarning),
|
||||
message,
|
||||
ctx.sema.diagnostics_display_range(d.node.clone()),
|
||||
ctx.sema.diagnostics_display_range(d.node),
|
||||
)
|
||||
.with_unused(true);
|
||||
Some(res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue