Skip to content

Commit b41bb1e

Browse files
committed
Run rustfmt
1 parent 9108fc6 commit b41bb1e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

sentry/src/db/channel.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ pub async fn get_channel_by_id_and_validator(
4646
.await
4747
}
4848

49-
pub async fn insert_channel(pool: &DbPool, channel: &Channel) -> Result<bool, RunError<bb8_postgres::tokio_postgres::Error>> {
49+
pub async fn insert_channel(
50+
pool: &DbPool,
51+
channel: &Channel,
52+
) -> Result<bool, RunError<bb8_postgres::tokio_postgres::Error>> {
5053
pool
5154
.run(move |connection| {
5255
async move {
@@ -63,4 +66,4 @@ pub async fn insert_channel(pool: &DbPool, channel: &Channel) -> Result<bool, Ru
6366
}
6467
})
6568
.await
66-
}
69+
}

sentry/src/routes/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ pub async fn create_channel<A: Adapter>(
5050
Err(ResponseError::BadRequest(
5151
"err occurred; please try again later".into(),
5252
))
53-
},
53+
}
5454
Ok(false) => Err(ResponseError::BadRequest(
5555
"err occurred; please try again later".into(),
5656
)),
57-
_ => Ok(())
57+
_ => Ok(()),
5858
}?;
5959

6060
let create_response = SuccessResponse { success: true };

0 commit comments

Comments
 (0)