From 294ce77a476a0a9ed6b8fcb59e2b63dc885a3a3f Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Wed, 13 Jul 2022 11:56:31 +0200 Subject: [PATCH] server: Fix misc clippy warnings --- server/src/domain/handler.rs | 2 +- server/src/domain/sql_backend_handler.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/domain/handler.rs b/server/src/domain/handler.rs index b01c292..0e01ab8 100644 --- a/server/src/domain/handler.rs +++ b/server/src/domain/handler.rs @@ -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() }; } diff --git a/server/src/domain/sql_backend_handler.rs b/server/src/domain/sql_backend_handler.rs index ea633bf..292f6c9 100644 --- a/server/src/domain/sql_backend_handler.rs +++ b/server/src/domain/sql_backend_handler.rs @@ -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"]); }