Git rid of MigrationFlags constructor

This commit is contained in:
Anthony Bullard 2024-12-28 10:33:20 -06:00
parent af39ce57fb
commit 389cc940e0
No known key found for this signature in database
9 changed files with 57 additions and 22 deletions

View file

@ -101,7 +101,10 @@ pub enum Output<'a> {
impl<'a> Output<'a> {
pub fn format(&self) -> InputOwned {
let arena = Bump::new();
let flags = MigrationFlags::new(false, false);
let flags = MigrationFlags {
snakify: false,
parens_and_commas: false,
};
let mut buf = Buf::new_in(&arena, flags);
match self {
Output::Header(header) => {

View file

@ -73,7 +73,7 @@ mod test_fmt {
Ok((actual, state)) => {
use roc_parse::normalize::Normalize;
let flags = MigrationFlags::new(false, false);
let flags = MigrationFlags{ snakify: false, parens_and_commas: false };
let mut buf = Buf::new_in(&arena, flags);
fmt_module_and_defs(&arena, src, &actual, state, &mut buf);