From fde0350565ef7539bdf2bff597f9e67bd04d04ff Mon Sep 17 00:00:00 2001 From: QtKai <15091327+QtKaii@users.noreply.github.com> Date: Wed, 24 Jan 2024 13:57:14 +0000 Subject: [PATCH] Remove unnecessary clippy::restriction from main.rs --- api/src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/api/src/main.rs b/api/src/main.rs index daa855f..ada225d 100644 --- a/api/src/main.rs +++ b/api/src/main.rs @@ -6,8 +6,7 @@ clippy::complexity, clippy::perf, clippy::style, - clippy::suspicious, - clippy::restriction + clippy::suspicious )] use axum::{ @@ -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; } @@ -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; } };