From a9caaafadb6f4018ca370ebc9132294e80439df9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 9 Apr 2019 22:03:14 -0700 Subject: rustfmt --- rust/src/auth.rs | 5 ++++- rust/tests/test_auth.rs | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rust/src/auth.rs b/rust/src/auth.rs index a62c2f58..1f0a1193 100644 --- a/rust/src/auth.rs +++ b/rust/src/auth.rs @@ -298,7 +298,10 @@ impl AuthConfectionary { created = Some(ts); break; } else { - info!("couldn't parse macaroon time constraint: {}", caveat.predicate()); + info!( + "couldn't parse macaroon time constraint: {}", + caveat.predicate() + ); } } } 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(); -- cgit v1.2.3