mirror of
https://github.com/jmic/altcha-lib-rs.git
synced 2026-01-25 04:16:40 +00:00
@@ -364,7 +364,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(all(feature = "json"))]
|
||||
#[cfg(feature = "json")]
|
||||
fn test_create_json_challenge_sha512() {
|
||||
let challenge_json = create_json_challenge(ChallengeOptions {
|
||||
algorithm: Some(AltchaAlgorithm::Sha512),
|
||||
|
||||
@@ -84,7 +84,8 @@ pub fn generate_url_from_salt_params(params: &ParamsMapType) -> String {
|
||||
.iter()
|
||||
.map(|(key, value)| key.to_owned() + "=" + value)
|
||||
.reduce(|acc, e| acc + "&" + e.as_str())
|
||||
.unwrap() + "&"
|
||||
.unwrap()
|
||||
+ "&"
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user