mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Reimplement ra_db::fixture::ParsedMeta
in terms of test_utils::FixtureMeta
This commit is contained in:
parent
eeb98237d1
commit
d901e0e709
2 changed files with 28 additions and 51 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue