Skip to content

Commit 2fbee81

Browse files
committed
0.7.0
1 parent 4259175 commit 2fbee81

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "smpl_jwt"
3-
version = "0.6.1"
3+
version = "0.7.0"
44
authors = ["Drazen Urch <github@drazenur.ch>"]
55
description = "Very simple JWT generation lib."
66
repository = "https://github.com/durch/rust-jwt"
@@ -19,7 +19,7 @@ serde = "^1.0"
1919
serde_derive = "1.0"
2020
serde_json = "1.0"
2121
openssl = "0.10"
22-
time = "0.2"
22+
time = "0.3.9"
2323
log = "0.4"
2424
base64 = "0.13"
2525
simpl = "0.1"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ impl<T> Jwt<T> where
156156
}
157157

158158
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))
160160
}
161161

162162
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))
164164
}
165165

166166
fn header(&self) -> Result<JwtHeader, JwtErr> {

0 commit comments

Comments
 (0)