Skip to content

Commit 8f6db07

Browse files
committed
Make WithTls the default EnvOpenOptions version
1 parent 607bfaf commit 8f6db07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

heed/src/envs/env_open_options.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ pub struct EnvOpenOptions<T: TlsUsage> {
3636
_tls_marker: PhantomData<T>,
3737
}
3838

39-
impl Default for EnvOpenOptions<WithoutTls> {
39+
impl Default for EnvOpenOptions<WithTls> {
4040
fn default() -> Self {
4141
Self::new()
4242
}
4343
}
4444

45-
impl EnvOpenOptions<WithoutTls> {
45+
impl EnvOpenOptions<WithTls> {
4646
/// Creates a blank new set of options ready for configuration.
47-
pub fn new() -> EnvOpenOptions<WithoutTls> {
47+
pub fn new() -> EnvOpenOptions<WithTls> {
4848
EnvOpenOptions {
4949
map_size: None,
5050
max_readers: None,

heed/src/txn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use crate::Result;
4646
/// }
4747
/// }
4848
/// ```
49-
pub struct RoTxn<'e, T> {
49+
pub struct RoTxn<'e, T = WithTls> {
5050
/// Makes the struct covariant and !Sync
5151
pub(crate) txn: Option<NonNull<ffi::MDB_txn>>,
5252
env: Cow<'e, Env<T>>,

0 commit comments

Comments
 (0)