refactor: simplify scope struct macro

This commit is contained in:
Zomatree committed 2025-08-18 01:58:15 +01:00
1 parent 83c15404a5
commit 14ea180683
4 files changed
+12 -12

No files matched your search

@@ -43,6 +43,7 @@ impl<'r> FromRequest<'r> for User {
)
.ok()?;
// access the scope required for the route stored in the request local cache set via `OAuth2Scoped`
let required_scope: v0::OAuth2Scope = request.local_cache(|| None::<crate::OAuth2Scope>)
.as_ref()
.copied()?