mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 21:40:58 +00:00
Git rid of MigrationFlags constructor
This commit is contained in:
parent
af39ce57fb
commit
389cc940e0
9 changed files with 57 additions and 22 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue