Silence warning about large enum variant

Because boxing the large variant is probably worse.
This commit is contained in:
Thayne McCombs 2022-11-02 02:21:09 -06:00
parent 6b7f8da381
commit 55aae3a8c0
1 changed files with 3 additions and 0 deletions

View File

@ -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),
}