fix linting

Signed-off-by: jmic <jmic@users.noreply.github.com>
This commit is contained in:
jmic
2025-12-20 18:30:23 +01:00
parent a24e527a02
commit d583333780
2 changed files with 4 additions and 3 deletions

View File

@@ -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),

View File

@@ -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)]