diff options
author | Aleksey Kladov <[email protected]> | 2020-05-05 19:55:12 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-05-05 20:35:30 +0100 |
commit | 3908fad1fe02efedc810d7bd8f765b1434684cef (patch) | |
tree | bbb53074847af07a64eafb0cbea088f49a88f7ae /crates/ra_ide/src/source_change.rs | |
parent | df00da15c435f3105007146cbbfc9afc34ad311c (diff) |
Normalize naming of diagnostics
Diffstat (limited to 'crates/ra_ide/src/source_change.rs')
-rw-r--r-- | crates/ra_ide/src/source_change.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_ide/src/source_change.rs b/crates/ra_ide/src/source_change.rs index 71b0e8f75..10afd7825 100644 --- a/crates/ra_ide/src/source_change.rs +++ b/crates/ra_ide/src/source_change.rs | |||
@@ -35,8 +35,10 @@ impl SourceChange { | |||
35 | /// Creates a new SourceChange with the given label, | 35 | /// Creates a new SourceChange with the given label, |
36 | /// containing only the given `SourceFileEdits`. | 36 | /// containing only the given `SourceFileEdits`. |
37 | pub(crate) fn source_file_edits<L: Into<String>>(label: L, edits: Vec<SourceFileEdit>) -> Self { | 37 | pub(crate) fn source_file_edits<L: Into<String>>(label: L, edits: Vec<SourceFileEdit>) -> Self { |
38 | let label = label.into(); | ||
39 | assert!(label.starts_with(char::is_uppercase)); | ||
38 | SourceChange { | 40 | SourceChange { |
39 | label: label.into(), | 41 | label: label, |
40 | source_file_edits: edits, | 42 | source_file_edits: edits, |
41 | file_system_edits: vec![], | 43 | file_system_edits: vec![], |
42 | cursor_position: None, | 44 | cursor_position: None, |