diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a6162f1..c80da03b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed formatting of method call chain when there is a comment between the colon token `:` and the function name ([#890](https://github.com/JohnnyMorganz/StyLua/issues/890)) +- Removed accidental random print to stdout when formatting a return statement across multiple lines ([#879](https://github.com/JohnnyMorganz/StyLua/issues/879)) - Luau: Fixed incorrect removal of semicolon before compound assignment with parentheses leading to ambiguous syntax error ([#885](https://github.com/JohnnyMorganz/StyLua/issues/885)) ## [0.20.0] - 2024-01-20 diff --git a/src/formatters/block.rs b/src/formatters/block.rs index 4d48f4b2..08ef6fad 100644 --- a/src/formatters/block.rs +++ b/src/formatters/block.rs @@ -154,7 +154,6 @@ pub fn format_return(ctx: &Context, return_node: &Return, shape: Shape) -> Retur let leading_comments = leading_comments .iter() .flat_map(|x| { - println!("{x}"); vec![ create_indent_trivia(ctx, shape), x.to_owned(),