Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed May 3, 2024
1 parent 52be9e1 commit 4f6ddd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/plugin_highlighter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod tests {

#[test]
fn test_mdx_plugin_highlighter() {
let mut code = mdast::Node::Root(mdast::Root {
let code = mdast::Node::Root(mdast::Root {
children: vec![mdast::Node::Code(mdast::Code {
lang: Some("markdown".into()),
meta: None,
Expand All @@ -39,7 +39,7 @@ mod tests {
});

assert_eq!(
mdx_plugin_highlighter(&mut code),
mdx_plugin_highlighter(&code),
vec!["markdown".to_string()]
);
}
Expand Down

0 comments on commit 4f6ddd0

Please sign in to comment.