From f58a8a3a4d724e620fcba0b3463893f2868e952e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Wed, 24 Jan 2024 16:43:15 +0100 Subject: [PATCH] chore: fix clippy warning Remove unnecessary TryInto conversion for an infallible one. --- crates/server/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/server/src/lib.rs b/crates/server/src/lib.rs index 39b8a9c..786d079 100644 --- a/crates/server/src/lib.rs +++ b/crates/server/src/lib.rs @@ -83,8 +83,7 @@ pub async fn serve(serve_options: ServeOptions) -> Result { let server = HttpServer::new(move || { // Initializes the app data for handlers let app_data: Data = Data::new( - >::try_into(serve_options.clone()) - .expect("failed initializing server"), + serve_options.clone().into() ); let mut app = App::new()