Skip to content

Commit 80b25f7

Browse files
committed
Make it clear with_context never returns borrowed data from Android
1 parent bcb18af commit 80b25f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustls-platform-verifier/src/android.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl<'a, 'env> LocalContext<'a, 'env> {
218218
/// Borrow the Android application context and execute the closure
219219
/// `with_context, ensuring locals are properly freed and exceptions
220220
/// are cleared.
221-
pub(super) fn with_context<F, T>(f: F) -> Result<T, Error>
221+
pub(super) fn with_context<F, T: 'static>(f: F) -> Result<T, Error>
222222
where
223223
F: FnOnce(&mut LocalContext, &mut JNIEnv) -> Result<T, Error>,
224224
{

0 commit comments

Comments
 (0)