diff options
author | vsrs <[email protected]> | 2020-05-16 09:57:41 +0100 |
---|---|---|
committer | vsrs <[email protected]> | 2020-05-16 09:57:41 +0100 |
commit | d901e0e709258f71183455865cb6f9e07b3dd5d3 (patch) | |
tree | 18c39839206d8c10bf2539cd0ae66162f02b3563 /crates/test_utils | |
parent | eeb98237d1cf5134ca3e41b85e1e9e07cab83c75 (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.rs | 5 |
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 | ||
17 | pub use ra_cfg::CfgOptions; | 17 | pub use ra_cfg::CfgOptions; |
18 | 18 | ||
19 | use serde_json::Value; | ||
20 | use text_size::{TextRange, TextSize}; | ||
21 | pub use relative_path::{RelativePath, RelativePathBuf}; | 19 | pub use relative_path::{RelativePath, RelativePathBuf}; |
22 | pub use rustc_hash::FxHashMap; | 20 | pub use rustc_hash::FxHashMap; |
21 | use serde_json::Value; | ||
22 | use text_size::{TextRange, TextSize}; | ||
23 | 23 | ||
24 | pub use difference::Changeset as __Changeset; | 24 | pub 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: |