This commit is contained in:
Folkert 2022-06-01 13:11:23 +02:00
parent 22cd581edc
commit 93e4bff855
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
8 changed files with 18 additions and 19 deletions

View file

@ -1,6 +1,6 @@
use crate::annotation::{Formattable, Newlines, Parens};
use crate::collection::{fmt_collection, Braces};
use crate::def::fmt_toplevel_defs;
use crate::def::fmt_defs;
use crate::pattern::fmt_pattern;
use crate::spaces::{count_leading_newlines, fmt_comments_only, fmt_spaces, NewlineAt, INDENT};
use crate::Buf;
@ -322,7 +322,7 @@ impl<'a> Formattable for Expr<'a> {
// (Canonicalization can remove defs later, but that hasn't happened yet!)
debug_assert!(!defs.is_empty());
fmt_toplevel_defs(buf, defs, indent);
fmt_defs(buf, defs, indent);
match &ret.value {
SpaceBefore(sub_expr, spaces) => {