From 8a53b7934bef7e1c592448ef23d9851cf04900b0 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 27 May 2026 12:57:05 -0600 Subject: [PATCH] fmt: apply uniform formatting with name change --- src/cli/completer.rs | 4 +++- src/parsers/python.rs | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cli/completer.rs b/src/cli/completer.rs index 5ad345c..31f5f3b 100644 --- a/src/cli/completer.rs +++ b/src/cli/completer.rs @@ -27,7 +27,9 @@ impl ShellCompletion { Self::Bash => generate(Shell::Bash, cmd, COYOTE_CLI_NAME, &mut io::stdout()), Self::Elvish => generate(Shell::Elvish, cmd, COYOTE_CLI_NAME, &mut io::stdout()), Self::Fish => generate(Shell::Fish, cmd, COYOTE_CLI_NAME, &mut io::stdout()), - Self::PowerShell => generate(Shell::PowerShell, cmd, COYOTE_CLI_NAME, &mut io::stdout()), + Self::PowerShell => { + generate(Shell::PowerShell, cmd, COYOTE_CLI_NAME, &mut io::stdout()) + } Self::Zsh => generate(Shell::Zsh, cmd, COYOTE_CLI_NAME, &mut io::stdout()), Self::Nushell => generate(Nushell, cmd, COYOTE_CLI_NAME, &mut io::stdout()), } diff --git a/src/parsers/python.rs b/src/parsers/python.rs index efc0306..fae7648 100644 --- a/src/parsers/python.rs +++ b/src/parsers/python.rs @@ -369,7 +369,8 @@ mod tests { .duration_since(UNIX_EPOCH) .expect("time went backwards") .as_nanos(); - let path = std::env::temp_dir().join(format!("coyote_python_parser_{file_name}_{unique}.py")); + let path = + std::env::temp_dir().join(format!("coyote_python_parser_{file_name}_{unique}.py")); fs::write(&path, source).expect("failed to write temp python source"); let file = File::open(&path).expect("failed to open temp python source"); let result = generate_python_declarations(file, file_name, Some(parent));