diff options
author | Thayne McCombs <astrothayne@gmail.com> | 2022-11-02 02:21:09 -0600 |
---|---|---|
committer | Thayne McCombs <astrothayne@gmail.com> | 2022-11-03 00:56:56 -0600 |
commit | 55aae3a8c043ce90efa3f4587be2d02c8a6e6c3b (patch) | |
tree | fed2136bd0f6359756154022ae2db08cf9f761fe | |
parent | 6b7f8da381153c29ca5ebd4e6c8bbb7a5b273128 (diff) |
Silence warning about large enum variant
Because boxing the large variant is probably worse.
-rw-r--r-- | src/walk.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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), } |