chore: cleanup and addressing clippy lints

This commit is contained in:
realaravinth
2022-05-27 18:37:59 +05:30
parent d7fd23f565
commit 629c841e2d
11 changed files with 14 additions and 45 deletions

View File

@@ -160,7 +160,7 @@ pub async fn database_works<'a, T: MCDatabase>(
db.create_notification(an).await.unwrap();
// 2. Get notifications
let notifications = db.get_all_unread_notifications(&an.to).await.unwrap();
let notifications = db.get_all_unread_notifications(an.to).await.unwrap();
assert_eq!(notifications.len(), 2);
assert_eq!(notifications[0].heading.as_ref().unwrap(), an.heading);
@@ -168,7 +168,7 @@ pub async fn database_works<'a, T: MCDatabase>(
db.mark_notification_read(an.to, notifications[0].id.unwrap())
.await
.unwrap();
let new_notifications = db.get_all_unread_notifications(&an.to).await.unwrap();
let new_notifications = db.get_all_unread_notifications(an.to).await.unwrap();
assert_eq!(new_notifications.len(), 1);
// create captcha