Skip to content

Commit cacee3b

Browse files
committed
Fix binding rendering
1 parent 4c0ae78 commit cacee3b

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/formatting/formatter.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,7 @@ impl<'i> Formatter<'i> {
363363
sub.append_application(invocation);
364364
sub.flush_current();
365365

366-
// Combine all fragments into a single atomic fragment to prevent wrapping
367-
let mut combined = String::new();
368-
for (_syntax, content) in &sub.fragments {
369-
combined.push_str(&content);
370-
}
371-
372-
// Return as a single fragment
373-
vec![(Syntax::Invocation, Cow::Owned(combined))]
366+
sub.fragments
374367
}
375368

376369
fn render_binding(
@@ -403,13 +396,7 @@ impl<'i> Formatter<'i> {
403396
sub.append_variables(variables);
404397
sub.flush_current();
405398

406-
// Combine all fragments into a single atomic fragment to prevent wrapping
407-
let mut combined = String::new();
408-
for (_syntax, content) in &sub.fragments {
409-
combined.push_str(&content);
410-
}
411-
412-
vec![(Syntax::Structure, Cow::Owned(combined))]
399+
sub.fragments
413400
}
414401

415402
pub fn append_char(&mut self, c: char) {

0 commit comments

Comments
 (0)