export OrEmpty

This commit is contained in:
Aiden McClelland
2025-01-17 15:29:48 -07:00
parent 8d6735d7e2
commit 0747acc54b

View File

@@ -408,7 +408,7 @@ where
#[derive(Debug, Clone, Copy, Deserialize, Serialize, Parser)] #[derive(Debug, Clone, Copy, Deserialize, Serialize, Parser)]
pub struct Empty {} pub struct Empty {}
pub(crate) trait OrEmpty<T> { pub trait OrEmpty<T> {
fn from_t(t: T) -> Self; fn from_t(t: T) -> Self;
} }
impl<T> OrEmpty<T> for T { impl<T> OrEmpty<T> for T {