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:
parent
cc46282866
commit
095442191c
@ -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()
|
||||
&& (!exit_code.success() || matches!(self.kind, LessOpenKind::PipedIgnoreExitCode))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user