diff --git a/src/formatters/trivia_util.rs b/src/formatters/trivia_util.rs index 533902e9..3f7932ae 100644 --- a/src/formatters/trivia_util.rs +++ b/src/formatters/trivia_util.rs @@ -1032,6 +1032,7 @@ pub fn get_last_stmt_trailing_trivia(last_stmt: LastStmt) -> (LastStmt, Vec bool { node.tokens().into_iter().any(token_contains_comments) } +#[allow(dead_code)] pub fn contains_singleline_comments(node: impl Node) -> bool { node.tokens() .into_iter()