forked from jmug/stoatchat
refactor: simplify scope struct macro
This commit is contained in:
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()?
|
||||
|
||||
Reference in new issue
Block a user