style: Applied formatting
CI / All (ubuntu-latest) (push) Failing after 25s
CI / All (macos-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-21 11:24:18 -06:00
parent 3aede58a11
commit 000559bc9d
2 changed files with 6 additions and 7 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
use url::Url;
use super::oauth::{OAuthConfig, OAuthFlow, OAuthProvider, TokenRequestFormat};
pub struct OpenAICompatibleOAuthProvider {
@@ -6,7 +8,7 @@ pub struct OpenAICompatibleOAuthProvider {
}
fn is_loopback_uri(uri: &str) -> bool {
url::Url::parse(uri)
Url::parse(uri)
.ok()
.and_then(|u| u.host_str().map(str::to_string))
.is_some_and(|host| matches!(host.as_str(), "127.0.0.1" | "localhost" | "[::1]" | "::1"))