summaryrefslogtreecommitdiff
path: root/src/db/mod.rs
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-07-16 20:06:39 +0200
committerpennae <github@quasiparticle.net>2022-07-17 17:23:15 +0200
commit33d42e39f94c89c12f3f9908cfe808fc70572b17 (patch)
tree6f5002bf5f16142d0c935313ab754097d6557f10 /src/db/mod.rs
parentc732402c21a6b2459588ff0c9633854a4b6b47f7 (diff)
downloadminor-skulk-33d42e39f94c89c12f3f9908cfe808fc70572b17.tar.gz
minor-skulk-33d42e39f94c89c12f3f9908cfe808fc70572b17.tar.xz
minor-skulk-33d42e39f94c89c12f3f9908cfe808fc70572b17.zip
apply rustfmt
Diffstat (limited to 'src/db/mod.rs')
-rw-r--r--src/db/mod.rs4
1 files changed, 3 insertions, 1 deletions
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<bool> {
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<()> {