mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 23:27:24 +00:00
Remove temporary FixtureEntry parsed_meta field.
This commit is contained in:
parent
d901e0e709
commit
256fb7556e
4 changed files with 10 additions and 11 deletions
|
@ -161,10 +161,8 @@ pub fn add_cursor(text: &str, offset: TextSize) -> String {
|
|||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct FixtureEntry {
|
||||
pub meta: String,
|
||||
pub meta: FixtureMeta,
|
||||
pub text: String,
|
||||
|
||||
pub parsed_meta: FixtureMeta,
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
|
@ -231,8 +229,8 @@ The offending line: {:?}"#,
|
|||
for line in lines.by_ref() {
|
||||
if line.starts_with("//-") {
|
||||
let meta = line["//-".len()..].trim().to_string();
|
||||
let parsed_meta = parse_meta(&meta);
|
||||
res.push(FixtureEntry { meta, parsed_meta, text: String::new() })
|
||||
let meta = parse_meta(&meta);
|
||||
res.push(FixtureEntry { meta, text: String::new() })
|
||||
} else if let Some(entry) = res.last_mut() {
|
||||
entry.text.push_str(line);
|
||||
entry.text.push('\n');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue