summaryrefslogtreecommitdiffstats
path: root/rust/tests/test_auth.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-09 22:03:14 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-09 22:03:14 -0700
commita9caaafadb6f4018ca370ebc9132294e80439df9 (patch)
tree303b5ac08fbb88cc66f0665ad7de739824badd16 /rust/tests/test_auth.rs
parentb1b4ecc1d7bc3aaffc6d8f88ad99709867c0dc14 (diff)
downloadfatcat-a9caaafadb6f4018ca370ebc9132294e80439df9.tar.gz
fatcat-a9caaafadb6f4018ca370ebc9132294e80439df9.zip
rustfmt
Diffstat (limited to 'rust/tests/test_auth.rs')
-rw-r--r--rust/tests/test_auth.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/tests/test_auth.rs b/rust/tests/test_auth.rs
index 2faf78ec..a9e7cbb0 100644
--- a/rust/tests/test_auth.rs
+++ b/rust/tests/test_auth.rs
@@ -35,7 +35,9 @@ fn test_auth_db() {
assert_eq!(editor_row.id, editor_id.to_uuid());
// create token w/ expiration
- let token = c.create_token(editor_id, Some(chrono::Duration::days(1))).unwrap();
+ let token = c
+ .create_token(editor_id, Some(chrono::Duration::days(1)))
+ .unwrap();
// verify token w/ expiration
let editor_row = c.parse_macaroon_token(&conn, &token, None).unwrap();