From e32a258339efe0e00c6126a48f9292c82c6f5273 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/server/src/lib.rs b/crates/server/src/lib.rs index 39b8a9c..586ed6c 100644 --- a/crates/server/src/lib.rs +++ b/crates/server/src/lib.rs @@ -82,10 +82,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"), - ); + let app_data: Data = Data::new(serve_options.clone().into()); let mut app = App::new() // enable logger