Add the clippy::too_many_arguments macro to try preview, not sure if better to create a new struct with all arguments

This commit is contained in:
azy 2025-02-07 12:04:21 +08:00
parent 4e17db2f04
commit 188b55ad25

View File

@ -153,6 +153,7 @@ impl FilePreviewer {
/// This ends up being the max size of partial previews. /// This ends up being the max size of partial previews.
const PARTIAL_BUFREAD_SIZE: usize = 64 * 1024; const PARTIAL_BUFREAD_SIZE: usize = 64 * 1024;
#[allow(clippy::too_many_arguments)]
pub fn try_preview( pub fn try_preview(
entry: &entry::Entry, entry: &entry::Entry,
partial_preview: Option<Arc<Preview>>, partial_preview: Option<Arc<Preview>>,