diff --git a/server/Cargo.toml b/server/Cargo.toml index 00b8f755..fdff241e 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -37,6 +37,9 @@ path = "src/lib.rs" [lints.rust] missing_docs = "deny" +[lints.clippy] +unwrap_used = "deny" + [dependencies] openapi = { path = "../github-mirror" } anyhow = "1.0.86" diff --git a/server/src/objects/user.rs b/server/src/objects/user.rs index 88276706..a739e7d1 100644 --- a/server/src/objects/user.rs +++ b/server/src/objects/user.rs @@ -55,9 +55,6 @@ 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 { /// Save user. pub async fn save(self) -> Result<()> {