From 33d42e39f94c89c12f3f9908cfe808fc70572b17 Mon Sep 17 00:00:00 2001 From: pennae Date: Sat, 16 Jul 2022 20:06:39 +0200 Subject: apply rustfmt --- src/db/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/db') diff --git a/src/db/mod.rs b/src/db/mod.rs index fa2b62f..bceab43 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -562,7 +562,9 @@ impl DbConn { pub(crate) async fn delete_oauth_token(&self, id: &OauthTokenID) -> sqlx::Result { Ok(query!(r#"delete from oauth_token where id = $1"#, id as _) .execute(&mut self.get().await?.tx) - .await?.rows_affected() > 0) + .await? + .rows_affected() + > 0) } pub(crate) async fn delete_refresh_token(&self, id: &OauthTokenID) -> sqlx::Result<()> { -- cgit v1.2.3