Skip to content

Commit

Permalink
Remove unnecessary clippy::restriction from main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
QtKaii committed Jan 24, 2024
1 parent 14a33cc commit fde0350
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
clippy::complexity,
clippy::perf,
clippy::style,
clippy::suspicious,
clippy::restriction
clippy::suspicious
)]

use axum::{
Expand All @@ -27,7 +26,7 @@ async fn main() {
let listener = match TcpListener::bind("0.0.0.0:3000").await {
Ok(x) => x,
Err(e) => {
println!("Error: {}", e);
println!("Error: {e}");
return;
}

Expand All @@ -38,7 +37,7 @@ async fn main() {
match axum::serve(listener, app).await {
Ok(x) => x,
Err(e) => {
println!("Error: {}", e);
println!("Error: {e}");
return;
}
};
Expand Down

0 comments on commit fde0350

Please sign in to comment.