File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " smpl_jwt"
3
- version = " 0.6.1 "
3
+ version = " 0.7.0 "
4
4
authors = [" Drazen Urch <github@drazenur.ch>" ]
5
5
description = " Very simple JWT generation lib."
6
6
repository = " https://github.com/durch/rust-jwt"
@@ -19,7 +19,7 @@ serde = "^1.0"
19
19
serde_derive = " 1.0"
20
20
serde_json = " 1.0"
21
21
openssl = " 0.10"
22
- time = " 0.2 "
22
+ time = " 0.3.9 "
23
23
log = " 0.4"
24
24
base64 = " 0.13"
25
25
simpl = " 0.1"
Original file line number Diff line number Diff line change @@ -156,11 +156,11 @@ impl<T> Jwt<T> where
156
156
}
157
157
158
158
fn encode ( param : & T ) -> Result < String , JwtErr > {
159
- Ok ( encode_config ( serde_json:: to_string ( & param) ?. as_bytes ( ) , base64:: URL_SAFE ) . to_owned ( ) )
159
+ Ok ( encode_config ( serde_json:: to_string ( & param) ?. as_bytes ( ) , base64:: URL_SAFE ) )
160
160
}
161
161
162
162
fn encode_header ( & self ) -> Result < String , JwtErr > {
163
- Ok ( encode_config ( serde_json:: to_string ( & self . header ( ) ?) ?. as_bytes ( ) , base64:: URL_SAFE ) . to_owned ( ) )
163
+ Ok ( encode_config ( serde_json:: to_string ( & self . header ( ) ?) ?. as_bytes ( ) , base64:: URL_SAFE ) )
164
164
}
165
165
166
166
fn header ( & self ) -> Result < JwtHeader , JwtErr > {
You can’t perform that action at this time.
0 commit comments