mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
update Justfile and fix some warnings
This commit is contained in:
parent
9e4406c66a
commit
b995f81a26
11 changed files with 67 additions and 84 deletions
|
|
@ -1,3 +1,4 @@
|
|||
//#![feature(lazy_type_alias)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
#![feature(impl_trait_in_assoc_type)]
|
||||
|
||||
|
|
@ -29,10 +30,10 @@ pub(crate) use std::marker::PhantomData;
|
|||
pub(crate) use std::error::Error;
|
||||
|
||||
/// Standard result type.
|
||||
pub(crate) type Usually<T> = Result<T, Box<dyn Error>>;
|
||||
pub type Usually<T> = Result<T, Box<dyn Error>>;
|
||||
|
||||
/// Standard optional result type.
|
||||
pub(crate) type Perhaps<T> = Result<Option<T>, Box<dyn Error>>;
|
||||
pub type Perhaps<T> = Result<Option<T>, Box<dyn Error>>;
|
||||
|
||||
#[cfg(test)] #[test] fn test_layout () -> Usually<()> {
|
||||
use ::tek_tui::Tui;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue