mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-16 00:48:28 +01:00
Silence warning about large enum variant
Because boxing the large variant is probably worse.
This commit is contained in:
parent
6b7f8da381
commit
55aae3a8c0
1 changed files with 3 additions and 0 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue