Skip to content

Commit

Permalink
feat(#17): clippy reject unwrap puzzle
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Jul 11, 2024
1 parent 2bb8df3 commit 49bea5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/src/objects/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 49bea5c

Please sign in to comment.