Skip to content

Commit 3e30a86

Browse files
committed
Format id in oauth delete command
1 parent e74186a commit 3e30a86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/admin/query/oauth.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,22 +279,22 @@ pub(super) async fn oauth_delete(&self, id: SessionOrUserId, force: bool) -> Res
279279
);
280280
}
281281

282-
match id {
282+
match &id {
283283
| Left(sess_id) => {
284284
self.services
285285
.oauth
286286
.sessions
287-
.delete(&sess_id)
287+
.delete(sess_id)
288288
.await;
289289
},
290290
| Right(user_id) => {
291291
self.services
292292
.oauth
293-
.delete_user_sessions(&user_id)
293+
.delete_user_sessions(user_id)
294294
.await;
295295
},
296296
}
297297

298-
self.write_str("deleted any oauth state for {id}")
298+
self.write_string(format!("deleted any oauth state for {id}"))
299299
.await
300300
}

0 commit comments

Comments
 (0)