Rename source_edit to source_file_edit to match file_system_edit

This commit is contained in:
Ville Penttinen 2019-03-25 09:13:58 +02:00
parent b92fcbc956
commit 4d26bae46d
5 changed files with 11 additions and 11 deletions

View file

@ -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 },
)),