server: Fix misc clippy warnings

This commit is contained in:
Valentin Tolmer 2022-07-13 11:56:31 +02:00 committed by nitnelave
parent 24c6b4a879
commit 294ce77a47
2 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@ impl std::string::ToString for Uuid {
#[macro_export]
macro_rules! uuid {
($s:literal) => {
crate::domain::handler::Uuid::try_from($s).unwrap()
$crate::domain::handler::Uuid::try_from($s).unwrap()
};
}

View File

@ -879,14 +879,14 @@ mod tests {
insert_user(&handler, "Jennz", "boupBoup").await;
// Remove a user
let _request_result = handler.delete_user(&UserId::new("Jennz")).await.unwrap();
handler.delete_user(&UserId::new("Jennz")).await.unwrap();
assert_eq!(get_user_names(&handler, None).await, vec!["hector", "val"]);
// Insert new user and remove two
insert_user(&handler, "NewBoi", "Joni").await;
let _request_result = handler.delete_user(&UserId::new("Hector")).await.unwrap();
let _request_result = handler.delete_user(&UserId::new("NewBoi")).await.unwrap();
handler.delete_user(&UserId::new("Hector")).await.unwrap();
handler.delete_user(&UserId::new("NewBoi")).await.unwrap();
assert_eq!(get_user_names(&handler, None).await, vec!["val"]);
}