aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_ide/src/ide_db/line_index_utils.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_ide/src/ide_db/line_index_utils.rs b/crates/ra_ide/src/ide_db/line_index_utils.rs
index 70bf7253c..faa3d665f 100644
--- a/crates/ra_ide/src/ide_db/line_index_utils.rs
+++ b/crates/ra_ide/src/ide_db/line_index_utils.rs
@@ -293,12 +293,14 @@ pub fn translate_offset_with_edit(
293 293
294#[cfg(test)] 294#[cfg(test)]
295mod test { 295mod test {
296 use super::*;
297 use crate::line_index;
298 use proptest::{prelude::*, proptest}; 296 use proptest::{prelude::*, proptest};
299 use ra_text_edit::test_utils::{arb_offset, arb_text_with_edit}; 297 use ra_text_edit::test_utils::{arb_offset, arb_text_with_edit};
300 use ra_text_edit::TextEdit; 298 use ra_text_edit::TextEdit;
301 299
300 use crate::ide_db::line_index;
301
302 use super::*;
303
302 #[derive(Debug)] 304 #[derive(Debug)]
303 struct ArbTextWithEditAndOffset { 305 struct ArbTextWithEditAndOffset {
304 text: String, 306 text: String,