mirror of
https://github.com/starship/starship.git
synced 2026-06-24 02:01:36 +07:00
refactor: bump msrv to remove once-cell, improve logger test & handle clippy warnings (#6315)
* refactor: replace `once_cell`-crate with stdlib * test(logger): make log cleanup-test cross-platform * chore: handle clippy warnings * build(deps): update dependency dprint/dprint-plugin-toml to v0.6.3 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use once_cell::sync::OnceCell;
|
||||
use regex::Regex;
|
||||
use std::sync::OnceLock;
|
||||
|
||||
use super::{Context, Module, ModuleConfig};
|
||||
|
||||
@@ -135,8 +135,8 @@ struct GitStatusInfo<'a> {
|
||||
context: &'a Context<'a>,
|
||||
repo: &'a context::Repo,
|
||||
config: GitStatusConfig<'a>,
|
||||
repo_status: OnceCell<Option<RepoStatus>>,
|
||||
stashed_count: OnceCell<Option<usize>>,
|
||||
repo_status: OnceLock<Option<RepoStatus>>,
|
||||
stashed_count: OnceLock<Option<usize>>,
|
||||
}
|
||||
|
||||
impl<'a> GitStatusInfo<'a> {
|
||||
@@ -149,8 +149,8 @@ impl<'a> GitStatusInfo<'a> {
|
||||
context,
|
||||
repo,
|
||||
config,
|
||||
repo_status: OnceCell::new(),
|
||||
stashed_count: OnceCell::new(),
|
||||
repo_status: OnceLock::new(),
|
||||
stashed_count: OnceLock::new(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user