Enforce style lints which do not have violations (#36580)

Release Notes:

- N/A
This commit is contained in:
tidely 2025-08-20 15:07:37 +03:00 committed by GitHub
parent 4ee565cd39
commit 6ed29fbc34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 146 additions and 89 deletions

View file

@ -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!(