mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Rename source_edit to source_file_edit to match file_system_edit
This commit is contained in:
parent
b92fcbc956
commit
4d26bae46d
5 changed files with 11 additions and 11 deletions
|
@ -71,7 +71,7 @@ fn check_unnecessary_braces_in_use_statement(
|
|||
range,
|
||||
message: format!("Unnecessary braces in use statement"),
|
||||
severity: Severity::WeakWarning,
|
||||
fix: Some(SourceChange::source_edit(
|
||||
fix: Some(SourceChange::source_file_edit(
|
||||
"Remove unnecessary braces",
|
||||
SourceFileEdit { file_id, edit },
|
||||
)),
|
||||
|
@ -117,7 +117,7 @@ fn check_struct_shorthand_initialization(
|
|||
range: named_field.syntax().range(),
|
||||
message: format!("Shorthand struct initialization"),
|
||||
severity: Severity::WeakWarning,
|
||||
fix: Some(SourceChange::source_edit(
|
||||
fix: Some(SourceChange::source_file_edit(
|
||||
"use struct shorthand initialization",
|
||||
SourceFileEdit { file_id, edit },
|
||||
)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue