diff --git a/src/verification/android.rs b/src/verification/android.rs index 5bda06a5..90239095 100644 --- a/src/verification/android.rs +++ b/src/verification/android.rs @@ -248,7 +248,7 @@ fn extract_result_info(env: &JNIEnv<'_>, result: JObject<'_>) -> (VerifierStatus let msg = env .get_field(result, "message", "Ljava/lang/String;") .and_then(|m| m.l()) - .map(|o| (!o.is_null()).then(|| o)) + .map(|o| (!o.is_null()).then_some(o)) .and_then(|s| s.map(|s| JavaStr::from_env(env, s.into())).transpose()) .unwrap(); diff --git a/src/verification/windows.rs b/src/verification/windows.rs index cddab88c..23952bfc 100644 --- a/src/verification/windows.rs +++ b/src/verification/windows.rs @@ -184,7 +184,7 @@ impl Certificate { CERT_SET_PROPERTY_IGNORE_PERSIST_ERROR_FLAG, prop_data, ) == TRUE) - .then(|| ()) + .then_some(()) }) } }