mirror of https://github.com/sharkdp/fd.git
Silence warning about large enum variant
Because boxing the large variant is probably worse.
This commit is contained in:
parent
6b7f8da381
commit
55aae3a8c0
|
@ -34,7 +34,10 @@ enum ReceiverMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The Worker threads can result in a valid entry having PathBuf or an error.
|
/// The Worker threads can result in a valid entry having PathBuf or an error.
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum WorkerResult {
|
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),
|
Entry(DirEntry),
|
||||||
Error(ignore::Error),
|
Error(ignore::Error),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue