util: remove dependencies on main crate

Only items from `fish_widestring`'s prelude are used, so depend on that
directly, to prepare for extraction.

Part of #12316
This commit is contained in:
Daniel Rainer
2026-01-12 18:41:16 +01:00
committed by Johannes Altmanninger
parent 7072eec225
commit f1d78103e4

View File

@@ -1,6 +1,6 @@
//! Generic utilities library.
use crate::prelude::*;
use fish_widestring::prelude::*;
use rand::{SeedableRng, rngs::SmallRng};
use std::cmp::Ordering;
use std::time;
@@ -260,7 +260,7 @@ pub fn find_subslice<T: PartialEq>(
#[cfg(test)]
mod tests {
use super::wcsfilecmp;
use crate::prelude::*;
use fish_widestring::prelude::*;
use std::cmp::Ordering;
/// Verify the behavior of the `wcsfilecmp()` function.