cargo-fmt and include new dependencies for tests

This commit is contained in:
Vecna 2024-03-29 16:14:11 -04:00
parent bc35163084
commit 63ed7b2951
2 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,7 @@ edition = "2021"
[dependencies] [dependencies]
array-bytes = "6.2.0" array-bytes = "6.2.0"
base64 = "0.21.7"
bincode = "1" bincode = "1"
chrono = "0.4" chrono = "0.4"
clap = { version = "4.4.14", features = ["derive"] } clap = { version = "4.4.14", features = ["derive"] }
@ -21,6 +22,7 @@ hyper-util = { version = "0.1", features = ["full"] }
julianday = "1.2.0" julianday = "1.2.0"
lazy_static = "1" lazy_static = "1"
lox-library = { git = "https://gitlab.torproject.org/vecna/lox.git", version = "0.1.0" } lox-library = { git = "https://gitlab.torproject.org/vecna/lox.git", version = "0.1.0" }
rand = "0.8.5"
serde = "1.0.197" serde = "1.0.197"
serde_json = "1.0" serde_json = "1.0"
serde_with = {version = "3.7.0", features = ["json"]} serde_with = {version = "3.7.0", features = ["json"]}

View File

@ -73,7 +73,12 @@ impl PositiveReport {
country: String, country: String,
) -> Result<Self, lox_library::proto::positive_report::requestproof::ProofError> { ) -> Result<Self, lox_library::proto::positive_report::requestproof::ProofError> {
let lox_proof = lox_pr::request(lox_cred, lox_pub)?; 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 /// Convert report to a serializable version