File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl CookieData {
30
30
/// An extension to `Context` that provides cached access to cookies
31
31
pub trait ContextExt {
32
32
/// returns a `Cookie` by name of the cookie
33
- fn get_cookie ( self , name : & str ) -> Result < Option < Cookie < ' static > > , StringError > ;
33
+ fn get_cookie ( & self , name : & str ) -> Result < Option < Cookie < ' static > > , StringError > ;
34
34
35
35
/// Add cookie to the cookie jar
36
36
fn set_cookie ( & mut self , cookie : Cookie < ' static > ) -> Result < ( ) , StringError > ;
@@ -41,7 +41,7 @@ pub trait ContextExt {
41
41
}
42
42
43
43
impl < State > ContextExt for Context < State > {
44
- fn get_cookie ( self , name : & str ) -> Result < Option < Cookie < ' static > > , StringError > {
44
+ fn get_cookie ( & self , name : & str ) -> Result < Option < Cookie < ' static > > , StringError > {
45
45
let cookie_data = self
46
46
. extensions ( )
47
47
. get :: < CookieData > ( )
You can’t perform that action at this time.
0 commit comments