Skip to content

Commit

Permalink
chore: typo, cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-herlemont committed Apr 3, 2024
1 parent 78e1572 commit 8819849
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion benches/overhead_data_size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ fn bench_remove_random(c: &mut Criterion) {
group.plot_config(plot_config.clone());
group.sampling_mode(criterion::SamplingMode::Flat);

for (nb_bytes, nb_items) in ITERATIONS {
for (nb_bytes, _nb_items) in ITERATIONS {
group.throughput(criterion::Throughput::Bytes(*nb_bytes as u64));

let (redb_db, native_db) = init_database();
Expand Down
2 changes: 1 addition & 1 deletion src/db_type/key/inner_key_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ mod tests {

#[test]
fn test_range() {
use redb::{ReadableTable, TableDefinition};
use redb::TableDefinition;

const TABLE: TableDefinition<DatabaseInnerKeyValue, u64> = TableDefinition::new("my_data");

Expand Down
5 changes: 2 additions & 3 deletions tests/watch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use native_db::*;
use native_model::{native_model, Model};
use serde::{Deserialize, Serialize};
use shortcut_assert_fs::TmpFs;
use std::time::Duration;
use std::sync::Arc;
use std::thread;
use std::time::Duration;

pub const TIMEOUT: Duration = Duration::from_secs(1);

Expand Down Expand Up @@ -84,8 +84,7 @@ fn watch_all_primary_key() {
assert!(recv.try_recv().is_err());
}

// Ignore this test on macOS and ios because it fails with: Result::unwrap()` on an `Err` value: WatchEventError(SendError(SendError { .. }))
#[cfg(not(any(target_os = "macos", target_os = "ios")))]

#[test]
fn watch_multithreading() {
let tf = TmpFs::new().unwrap();
Expand Down

0 comments on commit 8819849

Please sign in to comment.