aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/source_change.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-05 19:55:12 +0100
committerAleksey Kladov <[email protected]>2020-05-05 20:35:30 +0100
commit3908fad1fe02efedc810d7bd8f765b1434684cef (patch)
treebbb53074847af07a64eafb0cbea088f49a88f7ae /crates/ra_ide/src/source_change.rs
parentdf00da15c435f3105007146cbbfc9afc34ad311c (diff)
Normalize naming of diagnostics
Diffstat (limited to 'crates/ra_ide/src/source_change.rs')
-rw-r--r--crates/ra_ide/src/source_change.rs4
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,