Enforce style lints which do not have violations (#36580)
Release Notes: - N/A
This commit is contained in:
parent
4ee565cd39
commit
6ed29fbc34
20 changed files with 146 additions and 89 deletions
|
@ -1029,11 +1029,11 @@ impl Client {
|
|||
Status::SignedOut | Status::Authenticated => true,
|
||||
Status::ConnectionError
|
||||
| Status::ConnectionLost
|
||||
| Status::Authenticating { .. }
|
||||
| Status::Authenticating
|
||||
| Status::AuthenticationError
|
||||
| Status::Reauthenticating { .. }
|
||||
| Status::Reauthenticating
|
||||
| Status::ReconnectionError { .. } => false,
|
||||
Status::Connected { .. } | Status::Connecting { .. } | Status::Reconnecting { .. } => {
|
||||
Status::Connected { .. } | Status::Connecting | Status::Reconnecting => {
|
||||
return ConnectionResult::Result(Ok(()));
|
||||
}
|
||||
Status::UpgradeRequired => {
|
||||
|
@ -1902,10 +1902,7 @@ mod tests {
|
|||
assert!(matches!(status.next().await, Some(Status::Connecting)));
|
||||
|
||||
executor.advance_clock(CONNECTION_TIMEOUT);
|
||||
assert!(matches!(
|
||||
status.next().await,
|
||||
Some(Status::ConnectionError { .. })
|
||||
));
|
||||
assert!(matches!(status.next().await, Some(Status::ConnectionError)));
|
||||
auth_and_connect.await.into_response().unwrap_err();
|
||||
|
||||
// Allow the connection to be established.
|
||||
|
@ -1929,10 +1926,7 @@ mod tests {
|
|||
})
|
||||
});
|
||||
executor.advance_clock(2 * INITIAL_RECONNECTION_DELAY);
|
||||
assert!(matches!(
|
||||
status.next().await,
|
||||
Some(Status::Reconnecting { .. })
|
||||
));
|
||||
assert!(matches!(status.next().await, Some(Status::Reconnecting)));
|
||||
|
||||
executor.advance_clock(CONNECTION_TIMEOUT);
|
||||
assert!(matches!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue