You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Upgrade Rust to 1.72.0
Fixes new clippy errors and upgrade other tools
This commit is contained in:
@ -213,7 +213,7 @@ pub(crate) async fn post(
|
||||
// XXX: this might not be the right semantic, but it's the best we
|
||||
// can do for now, since we're not explicitly storing devices for OAuth2
|
||||
// sessions.
|
||||
for scope in session.scope.iter() {
|
||||
for scope in &*session.scope {
|
||||
if let Some(device) = Device::from_scope_token(scope) {
|
||||
// Schedule a job to delete the device.
|
||||
repo.job()
|
||||
|
@ -337,7 +337,7 @@ async fn authorization_code_grant(
|
||||
}
|
||||
|
||||
// Look for device to provision
|
||||
for scope in session.scope.iter() {
|
||||
for scope in &*session.scope {
|
||||
if let Some(device) = Device::from_scope_token(scope) {
|
||||
// Note that we're not waiting for the job to finish, we just schedule it. We
|
||||
// might get in a situation where the provisioning job is not finished when the
|
||||
|
Reference in New Issue
Block a user