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