From 095442191c18ab508b8166ad33699b4606017b1c Mon Sep 17 00:00:00 2001 From: einfachIrgendwer0815 <85333734+einfachIrgendwer0815@users.noreply.github.com> Date: Thu, 30 Jan 2025 18:29:00 +0100 Subject: [PATCH] Fix `clippy::ptr_arg` warnings --- src/lessopen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lessopen.rs b/src/lessopen.rs index cf004d49..4e18b85a 100644 --- a/src/lessopen.rs +++ b/src/lessopen.rs @@ -200,7 +200,7 @@ impl LessOpenPreprocessor { }) } - fn fall_back_to_original_file(&self, lessopen_stdout: &Vec, 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)) }