feat: downgrade some config errors and show warnings (#1538)

This commit is contained in:
Myriad-Dreamin 2025-03-19 13:30:00 +08:00 committed by GitHub
parent 9b9a674118
commit 13fb22f4fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 163 additions and 45 deletions

View file

@ -1,5 +1,5 @@
mod takable;
use std::{path::Path, sync::Arc};
use std::{borrow::Cow, path::Path, sync::Arc};
pub use takable::*;
@ -23,6 +23,8 @@ pub type ImmutStr = Arc<str>;
pub type ImmutBytes = Arc<[u8]>;
/// An immutable path.
pub type ImmutPath = Arc<Path>;
/// A copy-on-write static string.
pub type CowStr = Cow<'static, str>;
/// A trait for converting an `Arc<T>` into `Self`.
pub trait FromArc<T> {