mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00
feat: downgrade some config errors and show warnings (#1538)
This commit is contained in:
parent
9b9a674118
commit
13fb22f4fa
5 changed files with 163 additions and 45 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue