Skip to content

Commit

Permalink
Remove unused NeverFails error type (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc authored and arqunis committed Mar 15, 2022
1 parent d504bf2 commit 5774572
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/model/channel/reaction.rs
Expand Up @@ -632,22 +632,6 @@ impl<'a> TryFrom<&'a str> for ReactionType {
}
}

// TODO: Change this to `!` once it becomes stable.
#[derive(Debug)]
pub enum NeverFails {}

impl Display for NeverFails {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
write!(f, "never fails")
}
}

impl StdError for NeverFails {
fn description(&self) -> &str {
"never fails"
}
}

impl FromStr for ReactionType {
type Err = ReactionConversionError;

Expand Down

0 comments on commit 5774572

Please sign in to comment.