mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -15,7 +15,7 @@ pub(crate) fn missing_unsafe(ctx: &DiagnosticsContext<'_>, d: &hir::MissingUnsaf
|
|||
ctx,
|
||||
DiagnosticCode::RustcHardError("E0133"),
|
||||
"this operation is unsafe and requires an unsafe function or block",
|
||||
d.expr.clone().map(|it| it.into()),
|
||||
d.expr.map(|it| it.into()),
|
||||
)
|
||||
.with_fixes(fixes(ctx, d))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue