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:
David Knaack
2024-10-17 16:03:22 +02:00
committed by GitHub
parent 22c6c5201d
commit a5631a17dd
22 changed files with 97 additions and 94 deletions
+5 -5
View File
@@ -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(),
}
}