cargo-fmt and include new dependencies for tests
This commit is contained in:
parent
bc35163084
commit
63ed7b2951
|
@ -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"]}
|
||||
|
|
|
@ -73,7 +73,12 @@ impl PositiveReport {
|
|||
country: String,
|
||||
) -> Result<Self, lox_library::proto::positive_report::requestproof::ProofError> {
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue