From 2f8a38d8c7d86a47c2b169179fb8d513d483a70b Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Thu, 27 Jun 2024 23:34:27 -0400 Subject: [PATCH] chore(clippy): fix lint --- src/oauth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oauth.rs b/src/oauth.rs index 2ed2ff7..a3f4dc0 100644 --- a/src/oauth.rs +++ b/src/oauth.rs @@ -131,7 +131,7 @@ pub async fn token_daemon() { } pub async fn force_refresh_token() { - if !OAUTH_IS_ROLLING_OVER.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst).is_ok() { + if OAUTH_IS_ROLLING_OVER.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst).is_err() { trace!("Skipping refresh token roll over, already in progress"); return; }