Fix clippy::ptr_arg warnings

This commit is contained in:
einfachIrgendwer0815 committed 2025-02-02 15:08:14 +01:00
1 parent cc46282866
commit 095442191c
1 file changed
+1 -1
+1 -1
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()
&& (!exit_code.success() || matches!(self.kind, LessOpenKind::PipedIgnoreExitCode))
}