#![doc(hidden)]
use std::{convert::Infallible, panic::panic_any};
#[derive(Debug, Clone, Copy)]
pub struct IteratorDropper;
impl<Item> FromIterator<Item> for IteratorDropper {
fn from_iter<Iterator: IntoIterator<Item = Item>>(_: Iterator) -> Self {
IteratorDropper
}
}
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Ord, PartialOrd)]
pub struct ErrorPanicker(Infallible);
#[allow(clippy::fallible_impl_from)]
impl<T> From<T> for ErrorPanicker
where
T: Into<eyre::Report>,
{
fn from(t: T) -> Self {
panic_any(t.into())
}
}