Reimplement ra_db::fixture::ParsedMeta

in terms of test_utils::FixtureMeta
This commit is contained in:
vsrs 2020-05-16 11:57:41 +03:00
parent eeb98237d1
commit d901e0e709
2 changed files with 28 additions and 51 deletions

View file

@ -16,10 +16,10 @@ use std::{
pub use ra_cfg::CfgOptions;
use serde_json::Value;
use text_size::{TextRange, TextSize};
pub use relative_path::{RelativePath, RelativePathBuf};
pub use rustc_hash::FxHashMap;
use serde_json::Value;
use text_size::{TextRange, TextSize};
pub use difference::Changeset as __Changeset;
@ -292,7 +292,6 @@ fn split1(haystack: &str, delim: char) -> Option<(&str, &str)> {
Some((&haystack[..idx], &haystack[idx + delim.len_utf8()..]))
}
/// Adjusts the indentation of the first line to the minimum indentation of the rest of the lines.
/// This allows fixtures to start off in a different indentation, e.g. to align the first line with
/// the other lines visually: