From 49bea5cd1e492c5ef1f3f145d12a5bf4e6a79e8a Mon Sep 17 00:00:00 2001 From: h1alexbel Date: Thu, 11 Jul 2024 11:32:30 +0300 Subject: [PATCH] feat(#17): clippy reject unwrap puzzle --- server/src/objects/user.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/objects/user.rs b/server/src/objects/user.rs index 1c19363a..4519d4a4 100644 --- a/server/src/objects/user.rs +++ b/server/src/objects/user.rs @@ -41,6 +41,9 @@ impl User { // apply it to the storage. Keep in mind that application function in the // storage should be thread-safe (as well as #xml function). Don't forget to // create unit tests that prove that. +// @todo #17:30min Configure clippy to reject code with #unwrap(). +// We should prohibit to use #unwrap() function in our code. Let's configure +// clippy tool in the respective manner and get rid of all #unwrap() calls. impl User { pub async fn save(self) -> Result<()> { info!("registering user @{}", self.username);