Skip to content

Commit bf940e1

Browse files
committed
preserve cmp functions with DatabaseOpenOptions::types
1 parent fdd105d commit bf940e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

heed/src/databases/database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl<'e, 'n, T, KC, DC, C, CDUP> DatabaseOpenOptions<'e, 'n, T, KC, DC, C, CDUP>
7979
///
8080
/// The default types are [`Unspecified`] and require a call to [`Database::remap_types`]
8181
/// to use the [`Database`].
82-
pub fn types<NKC, NDC>(self) -> DatabaseOpenOptions<'e, 'n, T, NKC, NDC> {
82+
pub fn types<NKC, NDC>(self) -> DatabaseOpenOptions<'e, 'n, T, NKC, NDC, C, CDUP> {
8383
DatabaseOpenOptions {
8484
env: self.env,
8585
types: Default::default(),

heed/src/databases/encrypted_database.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl<'e, 'n, T, KC, DC, C, CDUP> EncryptedDatabaseOpenOptions<'e, 'n, T, KC, DC,
7777
///
7878
/// The default types are [`Unspecified`] and require a call to [`Database::remap_types`]
7979
/// to use the [`Database`].
80-
pub fn types<NKC, NDC>(self) -> EncryptedDatabaseOpenOptions<'e, 'n, T, NKC, NDC> {
80+
pub fn types<NKC, NDC>(self) -> EncryptedDatabaseOpenOptions<'e, 'n, T, NKC, NDC, C, CDUP> {
8181
EncryptedDatabaseOpenOptions { inner: self.inner.types() }
8282
}
8383

0 commit comments

Comments
 (0)