diff --git a/src/diff/sliders.rs b/src/diff/sliders.rs index 0ce5c799b..8067edae3 100644 --- a/src/diff/sliders.rs +++ b/src/diff/sliders.rs @@ -714,7 +714,12 @@ mod tests { start_col: 1, end_col: 2, }]; - let rhs = [Syntax::new_atom(&arena, pos, "a".to_owned(), AtomKind::Comment)]; + let rhs = [Syntax::new_atom( + &arena, + pos, + "a".to_owned(), + AtomKind::Comment, + )]; init_all_info(&lhs, &rhs); @@ -763,7 +768,12 @@ mod tests { start_col: 1, end_col: 2, }]; - let rhs = [Syntax::new_atom(&arena, pos, "a".to_owned(), AtomKind::Comment)]; + let rhs = [Syntax::new_atom( + &arena, + pos, + "a".to_owned(), + AtomKind::Comment, + )]; init_all_info(&lhs, &rhs); diff --git a/src/parse/syntax.rs b/src/parse/syntax.rs index ce4a2ed9c..3cd0fea23 100644 --- a/src/parse/syntax.rs +++ b/src/parse/syntax.rs @@ -1211,7 +1211,12 @@ mod tests { let arena = Arena::new(); - let x = Syntax::new_atom(&arena, pos.clone(), "foo\nbar".to_owned(), AtomKind::Comment); + let x = Syntax::new_atom( + &arena, + pos.clone(), + "foo\nbar".to_owned(), + AtomKind::Comment, + ); let y = Syntax::new_atom(&arena, pos, "foo\n bar".to_owned(), AtomKind::Comment); init_all_info(&[x], &[y]); diff --git a/src/parse/tree_sitter_parser.rs b/src/parse/tree_sitter_parser.rs index 1ffb9dd9b..2d028bcf3 100644 --- a/src/parse/tree_sitter_parser.rs +++ b/src/parse/tree_sitter_parser.rs @@ -1796,7 +1796,12 @@ fn atom_from_cursor<'a>( AtomKind::Normal }; - Some(Syntax::new_atom(arena, position, content.to_owned(), highlight)) + Some(Syntax::new_atom( + arena, + position, + content.to_owned(), + highlight, + )) } #[cfg(test)]