mirror of
https://github.com/perstarkse/minne.git
synced 2026-11-19 21:39:47 +01:00
chore: clippy api-router
This commit is contained in:
1 parent
99b88c3063
commit
ab68bccb80
3 files changed
+11
-11
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user