fix(proc): use TryFromDsl locally

This commit is contained in:
🪞👃🪞 2025-05-14 14:35:38 +03:00
parent bad20f5037
commit a9619ab9ce
3 changed files with 10 additions and 10 deletions

View file

@ -33,16 +33,6 @@ pub use ::ratatui; pub(crate) use ratatui::{
pub(crate) use std::sync::{Arc, RwLock, atomic::{AtomicBool, Ordering::*}};
pub(crate) use std::io::{stdout, Stdout};
pub(crate) use std::path::PathBuf;
pub(crate) use std::ffi::OsString;
#[macro_export] macro_rules! from {
($(<$($lt:lifetime),+>)?|$state:ident:$Source:ty|$Target:ty=$cb:expr) => {
impl $(<$($lt),+>)? From<$Source> for $Target {
fn from ($state:$Source) -> Self { $cb }
}
};
}
#[cfg(test)] #[test] fn test_tui_engine () -> Usually<()> {
use crate::*;