Skip to content

Commit

Permalink
Enhance clippy
Browse files Browse the repository at this point in the history
commit-id:e46388d3
  • Loading branch information
Itay-Tsabary-Starkware committed Apr 8, 2024
1 parent e227c15 commit 0f2a5e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
allow-unwrap-in-tests = true
enum-variant-size-threshold = 500
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ unused = "deny"

[workspace.lints.clippy]
as_conversions = "deny"
unwrap_used = "deny"

[workspace.dependencies]
assert_matches = "1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/gateway/src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Gateway {
axum::Server::bind(&addr)
.serve(app.into_make_service())
.await
.unwrap();
.expect("Unexpected server error.");

Ok(())
}
Expand Down

0 comments on commit 0f2a5e6

Please sign in to comment.