mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-25 21:37:32 +00:00
refactor: rearrange state methods (#1252)
This commit is contained in:
parent
4ce405a89b
commit
5069a89d5d
9 changed files with 445 additions and 453 deletions
|
|
@ -330,7 +330,7 @@ pub mod prelude {
|
|||
use crate::Error;
|
||||
|
||||
pub use super::{IgnoreLogging, WithContext, WithContextUntyped};
|
||||
pub use crate::Result;
|
||||
pub use crate::{bail, Result};
|
||||
|
||||
pub fn map_string_err<T: ToString>(loc: &'static str) -> impl Fn(T) -> Error {
|
||||
move |e| Error::new(loc, e.to_string().to_error_kind(), None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue