From 55aae3a8c043ce90efa3f4587be2d02c8a6e6c3b Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Wed, 2 Nov 2022 02:21:09 -0600 Subject: [PATCH] Silence warning about large enum variant Because boxing the large variant is probably worse. --- src/walk.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/walk.rs b/src/walk.rs index 280fbed..29e591b 100644 --- a/src/walk.rs +++ b/src/walk.rs @@ -34,7 +34,10 @@ enum ReceiverMode { } /// The Worker threads can result in a valid entry having PathBuf or an error. +#[allow(clippy::large_enum_variant)] pub enum WorkerResult { + // Errors should be rare, so it's probably better to allow large_enum_variant than + // to box the Entry variant Entry(DirEntry), Error(ignore::Error), }