@@ -64,7 +64,7 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
6464 . unwrap_or_else ( || RelativePath :: new ( "" ) )
6565 . join ( & d. candidate ) ;
6666 let create_file = FileSystemEdit :: CreateFile { source_root, path } ;
67- let fix = SourceChange :: file_system_edit ( "create module" , create_file) ;
67+ let fix = SourceChange :: file_system_edit ( "Create module" , create_file) ;
6868 res. borrow_mut ( ) . push ( Diagnostic {
6969 range : sema. diagnostics_range ( d) . range ,
7070 message : d. message ( ) ,
@@ -92,7 +92,7 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
9292 algo:: diff ( & d. ast ( db) . syntax ( ) , & field_list. syntax ( ) ) . into_text_edit ( & mut builder) ;
9393
9494 Some ( SourceChange :: source_file_edit_from (
95- "fill struct fields" ,
95+ "Fill struct fields" ,
9696 file_id,
9797 builder. finish ( ) ,
9898 ) )
@@ -117,7 +117,7 @@ pub(crate) fn diagnostics(db: &RootDatabase, file_id: FileId) -> Vec<Diagnostic>
117117 let node = d. ast ( db) ;
118118 let replacement = format ! ( "Ok({})" , node. syntax( ) ) ;
119119 let edit = TextEdit :: replace ( node. syntax ( ) . text_range ( ) , replacement) ;
120- let fix = SourceChange :: source_file_edit_from ( "wrap with ok" , file_id, edit) ;
120+ let fix = SourceChange :: source_file_edit_from ( "Wrap with ok" , file_id, edit) ;
121121 res. borrow_mut ( ) . push ( Diagnostic {
122122 range : sema. diagnostics_range ( d) . range ,
123123 message : d. message ( ) ,
@@ -199,7 +199,7 @@ fn check_struct_shorthand_initialization(
199199 message : "Shorthand struct initialization" . to_string ( ) ,
200200 severity : Severity :: WeakWarning ,
201201 fix : Some ( SourceChange :: source_file_edit (
202- "use struct shorthand initialization" ,
202+ "Use struct shorthand initialization" ,
203203 SourceFileEdit { file_id, edit } ,
204204 ) ) ,
205205 } ) ;
@@ -606,7 +606,7 @@ mod tests {
606606 range: 0..8,
607607 fix: Some(
608608 SourceChange {
609- label: "create module",
609+ label: "Create module",
610610 source_file_edits: [],
611611 file_system_edits: [
612612 CreateFile {
@@ -655,7 +655,7 @@ mod tests {
655655 range: 224..233,
656656 fix: Some(
657657 SourceChange {
658- label: "fill struct fields",
658+ label: "Fill struct fields",
659659 source_file_edits: [
660660 SourceFileEdit {
661661 file_id: FileId(
0 commit comments