Drop Error suffix from enum values to avoid the enum_variant_names clippy lint
This commit is contained in:
committed by
mergify[bot]
parent
2b39eb6412
commit
4a12c715a3
@@ -582,12 +582,12 @@ impl WindowService {
|
||||
H: Fn(),
|
||||
{
|
||||
match e {
|
||||
Error::CrossbeamRecvTimeoutError(RecvTimeoutError::Disconnected) => true,
|
||||
Error::CrossbeamRecvTimeoutError(RecvTimeoutError::Timeout) => {
|
||||
Error::CrossbeamRecvTimeout(RecvTimeoutError::Disconnected) => true,
|
||||
Error::CrossbeamRecvTimeout(RecvTimeoutError::Timeout) => {
|
||||
handle_timeout();
|
||||
false
|
||||
}
|
||||
Error::CrossbeamSendError => true,
|
||||
Error::CrossbeamSend => true,
|
||||
_ => {
|
||||
handle_error();
|
||||
error!("thread {:?} error {:?}", thread::current().name(), e);
|
||||
|
Reference in New Issue
Block a user