From cbe2e6fa14111935cc28c80dde6a2b5802a7b032 Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 6 Dec 2023 22:04:51 +0900 Subject: [PATCH] chore(common): remove unused file --- src/common/never.rs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/common/never.rs diff --git a/src/common/never.rs b/src/common/never.rs deleted file mode 100644 index f143caf6..00000000 --- a/src/common/never.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! An uninhabitable type meaning it can never happen. -//! -//! To be replaced with `!` once it is stable. - -use std::error::Error; -use std::fmt; - -#[derive(Debug)] -pub(crate) enum Never {} - -impl fmt::Display for Never { - fn fmt(&self, _: &mut fmt::Formatter<'_>) -> fmt::Result { - match *self {} - } -} - -impl Error for Never { - fn description(&self) -> &str { - match *self {} - } -}