From 63ed7b29512b2018fb1713f74101fb1773644432 Mon Sep 17 00:00:00 2001 From: Vecna Date: Fri, 29 Mar 2024 16:14:11 -0400 Subject: [PATCH] cargo-fmt and include new dependencies for tests --- Cargo.toml | 2 ++ src/positive_report.rs | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 22f8ea7..1ec182d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" [dependencies] array-bytes = "6.2.0" +base64 = "0.21.7" bincode = "1" chrono = "0.4" clap = { version = "4.4.14", features = ["derive"] } @@ -21,6 +22,7 @@ hyper-util = { version = "0.1", features = ["full"] } julianday = "1.2.0" lazy_static = "1" lox-library = { git = "https://gitlab.torproject.org/vecna/lox.git", version = "0.1.0" } +rand = "0.8.5" serde = "1.0.197" serde_json = "1.0" serde_with = {version = "3.7.0", features = ["json"]} diff --git a/src/positive_report.rs b/src/positive_report.rs index 12901eb..9d78dd8 100644 --- a/src/positive_report.rs +++ b/src/positive_report.rs @@ -73,7 +73,12 @@ impl PositiveReport { country: String, ) -> Result { let lox_proof = lox_pr::request(lox_cred, lox_pub)?; - Ok(PositiveReport::new(bridge_id, bridge_token, lox_proof, country)) + Ok(PositiveReport::new( + bridge_id, + bridge_token, + lox_proof, + country, + )) } /// Convert report to a serializable version