diff --git a/rustls-platform-verifier/src/verification/android.rs b/rustls-platform-verifier/src/verification/android.rs index 66c3cb5f..bcf9772d 100644 --- a/rustls-platform-verifier/src/verification/android.rs +++ b/rustls-platform-verifier/src/verification/android.rs @@ -190,7 +190,7 @@ impl Verifier { VERIFIER_CALL, &[ JValue::from(*cx.application_context()), - JValue::from(env.new_string(&server_name.to_str())?), + JValue::from(env.new_string(server_name.to_str())?), JValue::from(env.new_string(AUTH_TYPE)?), JValue::from(JObject::from(allowed_ekus)), JValue::from(ocsp_response),