Skip to content

Commit

Permalink
feat(#74): reject unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
l3r8yJ committed Jul 21, 2024
1 parent 977aab6 commit c2070d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions server/src/objects/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down

0 comments on commit c2070d4

Please sign in to comment.