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()