first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use std::{cmp::Ordering, sync::Arc};
|
||||
use std::cmp::Ordering;
|
||||
use std::sync::Arc;
|
||||
|
||||
use arrayvec::ArrayVec;
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
use std::{fmt, iter::FromIterator, ops::AddAssign, sync::Arc};
|
||||
use std::fmt;
|
||||
use std::iter::FromIterator;
|
||||
use std::ops::AddAssign;
|
||||
use std::sync::Arc;
|
||||
|
||||
use arrayvec::ArrayVec;
|
||||
pub use cursor::Cursor;
|
||||
pub use cursor::FilterCursor;
|
||||
pub use cursor::{Cursor, FilterCursor};
|
||||
|
||||
mod cursor;
|
||||
|
||||
@@ -526,5 +528,5 @@ where
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "lib_test.rs"]
|
||||
#[path = "lib_tests.rs"]
|
||||
mod tests;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use super::*;
|
||||
use std::ops::Add;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_extend_and_push_tree() {
|
||||
let mut tree1 = SumTree::new();
|
||||
@@ -16,7 +17,8 @@ fn test_extend_and_push_tree() {
|
||||
#[test]
|
||||
fn test_random() {
|
||||
for seed in 0..100 {
|
||||
use rand::{distributions, prelude::*};
|
||||
use rand::distributions;
|
||||
use rand::prelude::*;
|
||||
|
||||
let rng = &mut StdRng::seed_from_u64(seed);
|
||||
|
||||
Reference in New Issue
Block a user