File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use std::fmt;
9
9
use conduit:: { Handler , Method , Request , Response } ;
10
10
use router:: { Match , Router } ;
11
11
12
+ #[ derive( Default ) ]
12
13
pub struct RouteBuilder {
13
14
routers : HashMap < Method , Router < Box < dyn Handler > > > ,
14
15
}
@@ -109,7 +110,7 @@ pub trait RequestParams<'a> {
109
110
fn params ( self ) -> & ' a router:: Params ;
110
111
}
111
112
112
- pub fn params < ' a > ( req : & ' a dyn Request ) -> & ' a router:: Params {
113
+ pub fn params ( req : & dyn Request ) -> & router:: Params {
113
114
req. extensions ( )
114
115
. find :: < router:: Params > ( )
115
116
. expect ( "Missing params" )
@@ -144,7 +145,7 @@ mod tests {
144
145
RequestSentinel {
145
146
path : path. to_string ( ) ,
146
147
extensions : TypeMap :: new ( ) ,
147
- method : method ,
148
+ method,
148
149
}
149
150
}
150
151
}
You can’t perform that action at this time.
0 commit comments