Skip to content

Commit

Permalink
style: Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 3, 2024
1 parent 75ed5dd commit 43beebc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/fixture/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ pub(crate) trait ResultChainExt<T> {
fn chain<C>(self, chainable: C) -> Result<T, C>
where
C: ChainError;

fn chain_with<F, C>(self, chainable: F) -> Result<T, C>
where
F: FnOnce() -> C,
C: ChainError;
}

impl<T, E> ResultChainExt<T> for Result<T, E>
Expand All @@ -30,14 +25,6 @@ where
{
self.map_err(|e| chainable.chain(e))
}

fn chain_with<F, C>(self, chainable: F) -> Result<T, C>
where
F: FnOnce() -> C,
C: ChainError,
{
self.map_err(|e| chainable().chain(e))
}
}

/// Fixture initialization cause.
Expand Down

0 comments on commit 43beebc

Please sign in to comment.