chore: fmt

This commit is contained in:
2026-02-19 20:14:02 +08:00
parent 7eb3acf26f
commit 99045aa76c
3 changed files with 7 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ enum Command {
#[clap(flatten)]
source: ExprSource,
#[arg(long)]
silent: bool
silent: bool,
},
Eval {
#[clap(flatten)]
@@ -180,7 +180,7 @@ fn main() -> Result<()> {
)?;
match cli.command {
Command::Compile { source , silent } => run_compile(&mut context, source, silent),
Command::Compile { source, silent } => run_compile(&mut context, source, silent),
Command::Eval { source } => run_eval(&mut context, source),
Command::Repl => run_repl(&mut context),
}

View File

@@ -192,14 +192,11 @@ eval_okay_test!(
eval_okay_test!(partition);
eval_okay_test!(path);
eval_okay_test!(pathexists);
eval_okay_test!(
path_string_interpolation,
|| {
unsafe {
std::env::set_var("HOME", "/fake-home");
}
eval_okay_test!(path_string_interpolation, || {
unsafe {
std::env::set_var("HOME", "/fake-home");
}
);
});
eval_okay_test!(patterns);
eval_okay_test!(print);
eval_okay_test!(readDir);

View File

@@ -6,6 +6,7 @@ mod findfile;
mod free_globals;
mod functions;
mod io_operations;
mod lang;
mod numeric_types;
mod operators;
mod path_operations;
@@ -13,5 +14,4 @@ mod regex;
mod string_context;
mod thunk_scope;
mod to_string;
mod lang;
mod utils;