chore: clippy api-router

This commit is contained in:
Per Stark
2025-10-16 20:33:57 +02:00
parent 99b88c3063
commit ab68bccb80
3 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ fn extract_api_key(request: &Request) -> Option<String> {
.headers()
.get("Authorization")
.and_then(|v| v.to_str().ok())
.and_then(|auth| auth.strip_prefix("Bearer ").map(|s| s.trim()))
.and_then(|auth| auth.strip_prefix("Bearer ").map(str::trim))
})
.map(String::from)
}