aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-16 09:57:41 +0100
committervsrs <[email protected]>2020-05-16 09:57:41 +0100
commitd901e0e709258f71183455865cb6f9e07b3dd5d3 (patch)
tree18c39839206d8c10bf2539cd0ae66162f02b3563 /crates/test_utils
parenteeb98237d1cf5134ca3e41b85e1e9e07cab83c75 (diff)
Reimplement ra_db::fixture::ParsedMeta
in terms of test_utils::FixtureMeta
Diffstat (limited to 'crates/test_utils')
-rw-r--r--crates/test_utils/src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs
index 12ae5f451..0c367ce71 100644
--- a/crates/test_utils/src/lib.rs
+++ b/crates/test_utils/src/lib.rs
@@ -16,10 +16,10 @@ use std::{
16 16
17pub use ra_cfg::CfgOptions; 17pub use ra_cfg::CfgOptions;
18 18
19use serde_json::Value;
20use text_size::{TextRange, TextSize};
21pub use relative_path::{RelativePath, RelativePathBuf}; 19pub use relative_path::{RelativePath, RelativePathBuf};
22pub use rustc_hash::FxHashMap; 20pub use rustc_hash::FxHashMap;
21use serde_json::Value;
22use text_size::{TextRange, TextSize};
23 23
24pub use difference::Changeset as __Changeset; 24pub use difference::Changeset as __Changeset;
25 25
@@ -292,7 +292,6 @@ fn split1(haystack: &str, delim: char) -> Option<(&str, &str)> {
292 Some((&haystack[..idx], &haystack[idx + delim.len_utf8()..])) 292 Some((&haystack[..idx], &haystack[idx + delim.len_utf8()..]))
293} 293}
294 294
295
296/// Adjusts the indentation of the first line to the minimum indentation of the rest of the lines. 295/// Adjusts the indentation of the first line to the minimum indentation of the rest of the lines.
297/// This allows fixtures to start off in a different indentation, e.g. to align the first line with 296/// This allows fixtures to start off in a different indentation, e.g. to align the first line with
298/// the other lines visually: 297/// the other lines visually: