From a3c4f74cbf84985344133814f8ed291c1d344966 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 5 Mar 2025 11:33:35 +0100 Subject: [PATCH] Add some comments to the AnyTls impl --- heed/src/txn.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heed/src/txn.rs b/heed/src/txn.rs index 8f41ddb2..1570fc4a 100644 --- a/heed/src/txn.rs +++ b/heed/src/txn.rs @@ -210,6 +210,8 @@ impl TlsUsage for WithoutTls { } impl TlsUsage for AnyTls { + // Users cannot open environments with AnyTls; therefore, this will never be read. + // We prefer to put the most restrictive value. const ENABLED: bool = false; } @@ -273,7 +275,6 @@ impl<'p> RwTxn<'p> { Ok(RwTxn { txn: RoTxn { inner: RoTxnInner { txn: NonNull::new(txn), env: Cow::Borrowed(&env.inner) }, - _tls_marker: PhantomData, }, })