Page MenuHomeDevCentral

D2290.id5770.diff
No OneTemporary

D2290.id5770.diff

diff --git a/src/config.rs b/src/config.rs
--- a/src/config.rs
+++ b/src/config.rs
@@ -76,7 +76,7 @@
fn into_service(self, routes: Vec<Route>) -> Box<dyn Service> {
let service = DefaultService {
config: self,
- routes: Box::new(routes),
+ routes,
};
Box::new(service)
@@ -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
@@ -52,7 +52,7 @@
#[cfg(feature = "pgsql")]
pub struct DefaultService {
pub config: DefaultConfig,
- pub routes: Box<Vec<Route>>,
+ pub routes: Vec<Route>,
}
#[cfg(feature = "pgsql")]
@@ -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 {

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 11:31 (21 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2262329
Default Alt Text
D2290.id5770.diff (1 KB)

Event Timeline