Run cargo fmt

This commit is contained in:
Nicolas Abril 2024-05-31 21:04:50 +02:00
parent ec0dd6fa68
commit 8e652500d8
2 changed files with 3 additions and 6 deletions

View File

@ -288,11 +288,7 @@ pub struct RunOpts {
impl Default for RunOpts {
fn default() -> Self {
RunOpts {
linear_readback: false,
pretty: false,
hvm_path: "hvm".to_string()
}
RunOpts { linear_readback: false, pretty: false, hvm_path: "hvm".to_string() }
}
}

View File

@ -175,7 +175,8 @@ fn run_file() {
for adt_encoding in [AdtEncoding::NumScott, AdtEncoding::Scott] {
let compile_opts = CompileOpts { adt_encoding, ..CompileOpts::default() };
let (term, _, diags) = run_book_simple(book.clone(), run_opts.clone(), compile_opts, diagnostics_cfg, None)?;
let (term, _, diags) =
run_book_simple(book.clone(), run_opts.clone(), compile_opts, diagnostics_cfg, None)?;
res.push_str(&format!("{adt_encoding}:\n{diags}{term}\n\n"));
}
Ok(res)