use super::{Binary, Text};
use anyhow::bail;
#[derive(Debug)]
pub struct Nothing;
#[allow(clippy::from_over_into)]
impl Into<Text> for Nothing {
fn into(self) -> Text {
bail!("nothing")
}
}
impl From<Text> for Nothing {
fn from(_: Text) -> Nothing {
Nothing
}
}
#[allow(clippy::from_over_into)]
impl Into<Binary> for Nothing {
fn into(self) -> Binary {
bail!("nothing")
}
}
impl From<Binary> for Nothing {
fn from(_: Binary) -> Nothing {
Nothing
}
}