From 97f89e3ee3e5da235eef27eff6cc1ae92b500784 Mon Sep 17 00:00:00 2001 From: Kaiiiiiiiii <2761362118@qq.com> Date: Tue, 3 Feb 2026 13:44:20 +0800 Subject: [PATCH] style: format guard tests --- src/shell.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/shell.rs b/src/shell.rs index 3864f74..f3d5edd 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -66,7 +66,12 @@ mod tests { } #[apply(opts)] - fn bash_init_guards_empty_completion(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { + fn bash_init_guards_empty_completion( + cmd: Option<&str>, + hook: InitHook, + echo: bool, + resolve_symlinks: bool, + ) { let opts = Opts { cmd, hook, echo, resolve_symlinks }; let source = Bash(&opts).render().unwrap(); assert!(source.contains("[[ -n \"${__zoxide_result}\" ]] || return")); @@ -149,7 +154,12 @@ mod tests { } #[apply(opts)] - fn fish_init_guards_empty_completion(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { + fn fish_init_guards_empty_completion( + cmd: Option<&str>, + hook: InitHook, + echo: bool, + resolve_symlinks: bool, + ) { let opts = Opts { cmd, hook, echo, resolve_symlinks }; let source = Fish(&opts).render().unwrap(); assert!(source.contains("and test -n \"$result\""));