From 9ef1676f271f4d05755c5ab72d332d0eacedb597 Mon Sep 17 00:00:00 2001 From: orxfun Date: Sun, 25 May 2025 19:16:00 +0200 Subject: [PATCH 1/4] dbg lines are cleaned --- src/list/consuming.rs | 1 - src/list/ends_traits/doubly_ends_mut.rs | 1 - src/list/get.rs | 1 - tests/list_move_next_to.rs | 2 -- tests/reverse.rs | 1 - tests/ring_iter_mut.rs | 1 - tests/slice_move_prev_to.rs | 1 - 7 files changed, 8 deletions(-) diff --git a/src/list/consuming.rs b/src/list/consuming.rs index e33b65e..a4c41c4 100644 --- a/src/list/consuming.rs +++ b/src/list/consuming.rs @@ -75,7 +75,6 @@ where /// /// let expected: usize = new_list().into_iter_x().filter(|x| x % 2 == 0).sum(); /// let sum_evens = new_list().into_par_x().filter(|x| x % 2 == 0).sum(); - /// std::dbg!(sum_evens, expected); /// ``` #[cfg(feature = "orx-parallel")] pub fn into_par_x(self) -> impl orx_parallel::ParIter diff --git a/src/list/ends_traits/doubly_ends_mut.rs b/src/list/ends_traits/doubly_ends_mut.rs index 8fdfbd1..ada8fca 100644 --- a/src/list/ends_traits/doubly_ends_mut.rs +++ b/src/list/ends_traits/doubly_ends_mut.rs @@ -393,7 +393,6 @@ where /// let e = list.push_back('e'); /// /// assert!(list.eq_to_iter_vals(['a', 'b', 'c', 'd', 'e'])); - /// dbg!(list.front()); /// /// list.reverse(); /// assert!(list.eq_to_iter_vals(['e', 'd', 'c', 'b', 'a'])); diff --git a/src/list/get.rs b/src/list/get.rs index bef27e7..81fa70d 100644 --- a/src/list/get.rs +++ b/src/list/get.rs @@ -138,7 +138,6 @@ where /// /// let expected: usize = list.iter_x().filter(|x| *x % 2 == 0).sum(); /// let sum_evens = list.par_x().filter(|x| *x % 2 == 0).sum(); - /// std::dbg!(sum_evens, expected); /// ``` #[cfg(feature = "orx-parallel")] pub fn par_x(&self) -> impl orx_parallel::ParIter diff --git a/tests/list_move_next_to.rs b/tests/list_move_next_to.rs index 144d870..fac255d 100644 --- a/tests/list_move_next_to.rs +++ b/tests/list_move_next_to.rs @@ -32,8 +32,6 @@ fn list_move_next_to_back() { let mut vec: Vec<_> = (0..n).into_iter().filter(|x| x != &i).collect(); vec.insert(n - 1, i); - dbg!(i, &vec, list.iter().collect::>()); - #[cfg(feature = "validation")] list.validate(); assert!(list.eq_to_iter_refs(&vec)); diff --git a/tests/reverse.rs b/tests/reverse.rs index d098cb3..8b24aba 100644 --- a/tests/reverse.rs +++ b/tests/reverse.rs @@ -84,7 +84,6 @@ fn slice_reverse_until_back() { #[test] fn slice_reverse_middle() { for i in 0..20 { - dbg!(i); let mut list = doubly::new_doubly(&mut &mut doubly::rng_with_seed(100 * i as u64), 20, 50); let mut expected: Vec<_> = list.iter().cloned().collect(); let idx: Vec<_> = list.indices().collect(); diff --git a/tests/ring_iter_mut.rs b/tests/ring_iter_mut.rs index 16dbdaa..91d4f39 100644 --- a/tests/ring_iter_mut.rs +++ b/tests/ring_iter_mut.rs @@ -11,7 +11,6 @@ fn ring_iter_mut_on_list() { let values: Vec<_> = list.iter().cloned().collect(); for i in 0..n { - dbg!(i, n); let cyclic: Vec<_> = list.ring_iter_mut(&idx[i]).map(|x| x.clone()).collect(); assert_eq!(cyclic.len(), n); diff --git a/tests/slice_move_prev_to.rs b/tests/slice_move_prev_to.rs index 7c4b4b5..49ff763 100644 --- a/tests/slice_move_prev_to.rs +++ b/tests/slice_move_prev_to.rs @@ -12,7 +12,6 @@ fn slice_move_prev_to_front() { let a = 1; let b = 5; for i in a..=b { - dbg!(i); let (mut list, idx) = list_and_indices(n); let mut slice = list.slice_mut(&idx[a]..=&idx[b]); let idx: Vec<_> = slice.indices().collect(); From 824667a5ff46ffd7d7a250eb66caf8636d381cc9 Mon Sep 17 00:00:00 2001 From: orxfun Date: Sun, 25 May 2025 19:18:46 +0200 Subject: [PATCH 2/4] typo fixed --- src/list/consuming.rs | 2 +- src/list/get.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/list/consuming.rs b/src/list/consuming.rs index a4c41c4..95ced70 100644 --- a/src/list/consuming.rs +++ b/src/list/consuming.rs @@ -50,7 +50,7 @@ where /// In brief, computation is defined as chain of iterator transformations and parallelization /// is handled by the underlying parallel executor. /// - /// Required **orx-parallel** feature. + /// Requires **orx-parallel** feature. /// /// [`ParIter`]: orx_parallel::ParIter /// [`into_iter_x`]: crate::List::into_iter_x diff --git a/src/list/get.rs b/src/list/get.rs index 81fa70d..305d04a 100644 --- a/src/list/get.rs +++ b/src/list/get.rs @@ -113,7 +113,7 @@ where /// In brief, computation is defined as chain of iterator transformations and parallelization /// is handled by the underlying parallel executor. /// - /// Required **orx-parallel** feature. + /// Requires **orx-parallel** feature. /// /// [`ParIter`]: orx_parallel::ParIter /// [`iter_x`]: crate::List::iter_x From 73102655dc527152f6353359f9f09d5e48a4ae5b Mon Sep 17 00:00:00 2001 From: orxfun Date: Sun, 25 May 2025 19:19:09 +0200 Subject: [PATCH 3/4] minor version number incremented --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b4a11a5..a0b6fb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "orx-linked-list" -version = "3.9.0" +version = "3.9.1" edition = "2024" authors = ["orxfun "] description = "A linked list implementation with unique features and an extended list of constant time methods providing high performance traversals and mutations." From 6a81e09aaeb9c982f87f00cb79138f1e61b4f3d0 Mon Sep 17 00:00:00 2001 From: orxfun Date: Sun, 25 May 2025 19:30:25 +0200 Subject: [PATCH 4/4] typo fixed --- examples/bench_parallelization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bench_parallelization.rs b/examples/bench_parallelization.rs index 018b25d..fbfcdba 100644 --- a/examples/bench_parallelization.rs +++ b/examples/bench_parallelization.rs @@ -74,7 +74,7 @@ fn main() { Box::new(move || { let list: DoublyList<_> = (0..args.len as usize).collect(); - list.par_x() // replace iter_ (into_iter_x) with par_x (into_par_x) to parallelize ! + list.par_x() // replace iter_x (into_iter_x) with par_x (into_par_x) to parallelize ! .filter(|x| *x % 3 != 0) .map(|x| x + fibonacci(x % 1000)) .filter(|x| x % 2 == 0)