diff --git a/src/config.rs b/src/config.rs --- a/src/config.rs +++ b/src/config.rs @@ -164,7 +164,7 @@ fn into_service(self, routes: Vec<Route>) -> Box<dyn Service> { let service = MinimalService { config: self, - routes: Box::new(routes), + routes, }; Box::new(service) diff --git a/src/kernel.rs b/src/kernel.rs --- a/src/kernel.rs +++ b/src/kernel.rs @@ -100,7 +100,7 @@ /// The minimal service allows to spawn a server without any extra feature. pub struct MinimalService { pub config: MinimalConfig, - pub routes: Box<Vec<Route>>, + pub routes: Vec<Route>, } impl Service for MinimalService {