From abd0365c16ab2e65773f4c8d3b782c2e44128dc5 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 13 Jun 2026 20:45:15 +0200 Subject: chore(treewide): Remove glob imports --- crates/atuin-nucleo/src/boxcar.rs | 4 ++-- crates/atuin-nucleo/src/worker.rs | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'crates/atuin-nucleo/src') diff --git a/crates/atuin-nucleo/src/boxcar.rs b/crates/atuin-nucleo/src/boxcar.rs index 726f4dff..e54afc05 100644 --- a/crates/atuin-nucleo/src/boxcar.rs +++ b/crates/atuin-nucleo/src/boxcar.rs @@ -655,7 +655,7 @@ impl Location { #[cfg(test)] mod tests { - use super::*; + use super::{Location, Vec, BUCKETS, MAX_ENTRIES}; #[test] fn location() { @@ -780,7 +780,7 @@ mod tests { fn extend_over_max_capacity() { let vec = Vec::::with_capacity(1, 1); let count = MAX_ENTRIES as usize + 2; - let iter = std::iter::repeat(0).take(count); + let iter = std::iter::repeat_n(0, count); assert!(std::panic::catch_unwind(|| vec.extend(iter, |_, _| {})).is_err()); } } diff --git a/crates/atuin-nucleo/src/worker.rs b/crates/atuin-nucleo/src/worker.rs index 83472e79..bebfa308 100644 --- a/crates/atuin-nucleo/src/worker.rs +++ b/crates/atuin-nucleo/src/worker.rs @@ -5,7 +5,10 @@ use std::sync::Arc; use atuin_nucleo_matcher::Config; use parking_lot::Mutex; -use rayon::{prelude::*, ThreadPool}; +use rayon::{ + prelude::{IntoParallelRefMutIterator, ParallelExtend, ParallelIterator}, + ThreadPool, +}; use crate::par_sort::par_quicksort; use crate::pattern::{self, MultiPattern}; -- cgit v1.3.1