Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottia committed Feb 21, 2025
1 parent a33f0d2 commit e245220
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/tests/front_matter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ fn trailing_space_open() {
let root = parse_document(&arena, input, &options);

let found = root
.descendants().find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));
.descendants()
.find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));

assert!(found.is_none(), "no FrontMatter expected");
}
Expand All @@ -120,7 +121,8 @@ fn leading_space_open() {
let root = parse_document(&arena, input, &options);

let found = root
.descendants().find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));
.descendants()
.find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));

assert!(found.is_none(), "no FrontMatter expected");
}
Expand All @@ -135,7 +137,8 @@ fn leading_space_close() {
let root = parse_document(&arena, input, &options);

let found = root
.descendants().find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));
.descendants()
.find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));

assert!(found.is_none(), "no FrontMatter expected");
}
Expand All @@ -150,7 +153,8 @@ fn trailing_space_close() {
let root = parse_document(&arena, input, &options);

let found = root
.descendants().find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));
.descendants()
.find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));

assert!(found.is_none(), "no FrontMatter expected");
}
Expand All @@ -165,7 +169,8 @@ fn second_line() {
let root = parse_document(&arena, input, &options);

let found = root
.descendants().find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));
.descendants()
.find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));

assert!(found.is_none(), "no FrontMatter expected");
}
Expand All @@ -180,7 +185,8 @@ fn fm_only_with_trailing_newline() {
let root = parse_document(&arena, input, &options);

let found = root
.descendants().find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));
.descendants()
.find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));

assert!(found.is_some(), "front matter expected");
}
Expand All @@ -195,7 +201,8 @@ fn fm_only_without_trailing_newline() {
let root = parse_document(&arena, input, &options);

let found = root
.descendants().find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));
.descendants()
.find(|n| matches!(n.data.borrow().value, NodeValue::FrontMatter(..)));

assert!(found.is_some(), "front matter expected");
}

0 comments on commit e245220

Please sign in to comment.