aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-08-11 15:15:11 +0100
committerKirill Bulatov <[email protected]>2020-08-11 15:52:05 +0100
commitdb12ccee96bf37367b39ad99638d06da7123c088 (patch)
tree6ade1ef7533d2ac235ccf507c48bde6c41289917 /crates/ra_ide
parent188ec3459e795732ad097758f7bf6b6b95bdbf5e (diff)
Better naming and docs
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/diagnostics.rs2
-rw-r--r--crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/diagnostics.rs b/crates/ra_ide/src/diagnostics.rs
index 757b76fd4..1046d7ab3 100644
--- a/crates/ra_ide/src/diagnostics.rs
+++ b/crates/ra_ide/src/diagnostics.rs
@@ -183,7 +183,7 @@ mod tests {
183 /// Takes a multi-file input fixture with annotated cursor positions, 183 /// Takes a multi-file input fixture with annotated cursor positions,
184 /// and checks that: 184 /// and checks that:
185 /// * a diagnostic is produced 185 /// * a diagnostic is produced
186 /// * this diagnostic fix touches the input cursor position 186 /// * this diagnostic fix trigger range touches the input cursor position
187 /// * that the contents of the file containing the cursor match `after` after the diagnostic fix is applied 187 /// * that the contents of the file containing the cursor match `after` after the diagnostic fix is applied
188 fn check_fix(ra_fixture_before: &str, ra_fixture_after: &str) { 188 fn check_fix(ra_fixture_before: &str, ra_fixture_after: &str) {
189 let after = trim_indent(ra_fixture_after); 189 let after = trim_indent(ra_fixture_after);
diff --git a/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs b/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs
index 57b54a61e..f7c73773f 100644
--- a/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs
+++ b/crates/ra_ide/src/diagnostics/diagnostics_with_fix.rs
@@ -1,4 +1,5 @@
1//! Provides a way to attach fix actions to the 1//! Provides a way to attach fixes to the diagnostics.
2//! The same module also has all curret custom fixes for the diagnostics implemented.
2use crate::Fix; 3use crate::Fix;
3use ast::{edit::IndentLevel, make}; 4use ast::{edit::IndentLevel, make};
4use hir::{ 5use hir::{