Skip to content

Commit

Permalink
ci: force no_unwrap in 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 9e36a57 commit 1815a99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow-unwrap-in-tests = true
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("Server should run forever.");

Ok(())
}
Expand Down

0 comments on commit 1815a99

Please sign in to comment.