Skip to content

Commit 1cf56d1

Browse files
Remove accidental print when formatting hanging returns (#907)
1 parent e4952b1 commit 1cf56d1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Fixed
1515

1616
- 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))
17+
- Removed accidental random print to stdout when formatting a return statement across multiple lines ([#879](https://github.com/JohnnyMorganz/StyLua/issues/879))
1718
- Luau: Fixed incorrect removal of semicolon before compound assignment with parentheses leading to ambiguous syntax error ([#885](https://github.com/JohnnyMorganz/StyLua/issues/885))
1819
- Luau: Fixed incorrect collapsing of union/intersection type value with comments in a type table leading to a syntax error ([#893](https://github.com/JohnnyMorganz/StyLua/issues/893))
1920

src/formatters/block.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ pub fn format_return(ctx: &Context, return_node: &Return, shape: Shape) -> Retur
154154
let leading_comments = leading_comments
155155
.iter()
156156
.flat_map(|x| {
157-
println!("{x}");
158157
vec![
159158
create_indent_trivia(ctx, shape),
160159
x.to_owned(),

0 commit comments

Comments
 (0)