Merge pull request #1159 from tmccombs/silence-large-variant

Silence warning about large enum variant
This commit is contained in:
David Peter 2022-11-03 08:54:52 +01:00 committed by GitHub
commit fbef976b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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