Skip to content

Commit

Permalink
chore: remove unused IntoResult
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Feb 19, 2025
1 parent dacd9db commit ab0b917
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,6 @@ use super::{
state_machine::StateMachine,
};

pub trait IntoResult {
type Ok;
type Err;

fn into_result(self) -> Result<Self::Ok, Self::Err>;
}

impl<A, B> IntoResult for Result<A, B> {
type Ok = A;
type Err = B;
fn into_result(self) -> Result<A, B> {
self
}
}

/// This is an Either type, unfortunately it's more ergonomic
/// to recreate this instead of using `itertools::Either`, because
/// we need a special implementation of Indexed: we want the vote to
Expand Down

0 comments on commit ab0b917

Please sign in to comment.