Rename source_edit to source_file_edit to match file_system_edit
This commit is contained in:
@@ -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 },
|
||||
)),
|
||||
|
||||
Reference in New Issue
Block a user