Skip to content

Commit 668a545

Browse files
committed
Fix new clippy lints from stable Rust update
1 parent 9470ab2 commit 668a545

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rustls-platform-verifier/src/android.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ enum Global {
5252
}
5353

5454
impl Global {
55-
fn env(&self) -> Result<JNIEnv, Error> {
55+
fn env(&self) -> Result<JNIEnv<'_>, Error> {
5656
let vm = match self {
5757
Global::Internal { java_vm, .. } => java_vm,
5858
Global::External(global) => global.java_vm(),
5959
};
6060
Ok(vm.attach_current_thread_permanently()?)
6161
}
6262

63-
fn context(&self) -> Result<Context, Error> {
63+
fn context(&self) -> Result<Context<'_>, Error> {
6464
let env = self.env()?;
6565

6666
let context = match self {

0 commit comments

Comments
 (0)