Skip to content

Commit 9c28ab5

Browse files
committed
adds clippy deny for unwrap usage
Signed-off-by: Aminu Oluwaseun Joshua <seun.aminujoshua@gmail.com>
1 parent 2d747e0 commit 9c28ab5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

clippy.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
disallowed-methods = [
2+
"std::result::Result::unwrap",
3+
]

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![deny(clippy::disallowed_methods)]
2+
13
use std::net::SocketAddr;
24

35
use axum::{Router, routing::get};

0 commit comments

Comments
 (0)