Fix non-brace delimeters in nested macro formatting (#2831)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-08-13 22:47:43 -07:00
1 parent d649b0c54d
commit 851abe82d5
6 files changed
+255 -6

No files matched your search

+5 -3
View File
@@ -72,9 +72,11 @@ impl<'a> Writer<'a> {
/// Check if the rsx call is short enough to be inlined
pub(crate) fn is_short_rsx_call(roots: &[BodyNode]) -> bool {
match roots.len() {
0 => true,
1 if matches!(roots[0], BodyNode::Text(_)) => true,
// eventually I want to use the _text length, so shutup now
#[allow(clippy::match_like_matches_macro)]
match roots {
[] => true,
[BodyNode::Text(_text)] => true,
_ => false,
}
}