Enable clippy::needless_question_mark
(#8759)
This PR enables the [`clippy::needless_question_mark`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_question_mark) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
33790b81fc
commit
a6dbaac653
10 changed files with 23 additions and 26 deletions
|
@ -1030,7 +1030,7 @@ impl Database {
|
|||
if result.rows_affected != 1 {
|
||||
Err(anyhow!("could not update room participant role"))?;
|
||||
}
|
||||
Ok(self.get_room(room_id, &tx).await?)
|
||||
self.get_room(room_id, &tx).await
|
||||
})
|
||||
.await
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ async fn test_channels(db: &Arc<Database>) {
|
|||
let mut members = db
|
||||
.transaction(|tx| async move {
|
||||
let channel = db.get_channel_internal(replace_id, &tx).await?;
|
||||
Ok(db.get_channel_participants(&channel, &tx).await?)
|
||||
db.get_channel_participants(&channel, &tx).await
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue