1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-12 16:08:38 +00:00

Fix clippy::ptr_arg warnings

This commit is contained in:
einfachIrgendwer0815 2025-01-30 18:29:00 +01:00
parent cc46282866
commit 095442191c
No known key found for this signature in database
GPG Key ID: 58D55E5F117DA873

View File

@ -200,7 +200,7 @@ impl LessOpenPreprocessor {
}) })
} }
fn fall_back_to_original_file(&self, lessopen_stdout: &Vec<u8>, exit_code: ExitStatus) -> bool { fn fall_back_to_original_file(&self, lessopen_stdout: &[u8], exit_code: ExitStatus) -> bool {
lessopen_stdout.is_empty() lessopen_stdout.is_empty()
&& (!exit_code.success() || matches!(self.kind, LessOpenKind::PipedIgnoreExitCode)) && (!exit_code.success() || matches!(self.kind, LessOpenKind::PipedIgnoreExitCode))
} }