From 99045aa76cac41f2b1fd77a98ee47d846cac8a66 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Thu, 19 Feb 2026 20:14:02 +0800 Subject: [PATCH] chore: fmt --- nix-js/src/main.rs | 4 ++-- nix-js/tests/tests/lang.rs | 11 ++++------- nix-js/tests/tests/main.rs | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/nix-js/src/main.rs b/nix-js/src/main.rs index 3a625e8..5b70a73 100644 --- a/nix-js/src/main.rs +++ b/nix-js/src/main.rs @@ -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), } diff --git a/nix-js/tests/tests/lang.rs b/nix-js/tests/tests/lang.rs index 0058165..91d7b32 100644 --- a/nix-js/tests/tests/lang.rs +++ b/nix-js/tests/tests/lang.rs @@ -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); diff --git a/nix-js/tests/tests/main.rs b/nix-js/tests/tests/main.rs index 11e790e..1f3b52c 100644 --- a/nix-js/tests/tests/main.rs +++ b/nix-js/tests/tests/main.rs @@ -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;