mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-25 10:11:17 -03:00
Rust 1.70 stabilized `std::sync::OnceLock`, which replaces `once_cell::sync::OnceCell`. With this, we only have a single remaining direct dependency on `once_cell`: `VAR_DISPATCH_TABLE` in `src/env_dispatch.rs`, where we use `Lazy::get`. This can be replaced with `LazyLock::get` once our MSRV reaches 1.94, where the function is stabilized. At the moment, `serial_test` depends on `once_cell`, so even if we eliminate it as a direct dependency, it will remain a transitive dependency. Closes #12289