Skip to content

Commit

Permalink
Improve docsrs
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Sep 15, 2024
1 parent 8aab7e7 commit ebb9c0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

use core::{borrow::Borrow, cmp, marker::PhantomData, mem, slice};

#[doc(inline)]
pub use among;
use among::Among;
use crossbeam_skiplist::SkipSet;
Expand All @@ -26,9 +25,11 @@ extern crate std;
pub use dbutils::{Ascend, CheapClone, Checksumer, Comparator, Crc32, Descend};

#[cfg(feature = "xxhash3")]
#[cfg_attr(docsrs, doc(cfg(feature = "xxhash3")))]
pub use dbutils::XxHash3;

#[cfg(feature = "xxhash64")]
#[cfg_attr(docsrs, doc(cfg(feature = "xxhash64")))]
pub use dbutils::XxHash64;

const STATUS_SIZE: usize = mem::size_of::<u8>();
Expand Down
6 changes: 3 additions & 3 deletions src/swmr/generic/tests/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ fn insert_to_full(wal: &mut GenericOrderWal<Person, String>) {

#[test]
fn insert_to_full_inmemory() {
let mut wal = GenericOrderWal::<Person, String>::new(Options::new().with_capacity(MB)).unwrap();
let mut wal = GenericOrderWal::<Person, String>::new(Options::new().with_capacity(100)).unwrap();
insert_to_full(&mut wal);
}

#[test]
fn insert_to_full_map_anon() {
let mut wal =
GenericOrderWal::<Person, String>::map_anon(Options::new().with_capacity(MB)).unwrap();
GenericOrderWal::<Person, String>::map_anon(Options::new().with_capacity(100)).unwrap();
insert_to_full(&mut wal);
}

Expand All @@ -42,7 +42,7 @@ fn insert_to_full_map_file() {
&path,
Options::new(),
OpenOptions::new()
.create_new(Some(MB))
.create_new(Some(100))
.write(true)
.read(true),
)
Expand Down

0 comments on commit ebb9c0d

Please sign in to comment.