From 6ff18af48ff736d8063654072c97cbf6d564d813 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 19 Nov 2022 12:56:26 -0800 Subject: [PATCH] Make include_shebang_line clearer (#1418) --- src/shebang.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shebang.rs b/src/shebang.rs index 00cfe26..3515197 100644 --- a/src/shebang.rs +++ b/src/shebang.rs @@ -47,7 +47,7 @@ impl<'line> Shebang<'line> { } pub(crate) fn include_shebang_line(&self) -> bool { - !cfg!(windows) && !matches!(self.interpreter_filename(), "cmd" | "cmd.exe") + !(cfg!(windows) || matches!(self.interpreter_filename(), "cmd" | "cmd.exe")) } }