Skip to content

Commit

Permalink
make provider impl into a blanket impl
Browse files Browse the repository at this point in the history
  • Loading branch information
yaahc committed Aug 10, 2022
1 parent 813b5de commit 6375088
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ pub trait Error: Debug + Display {
}

#[unstable(feature = "error_generic_member_access", issue = "99301")]
impl<'b> Provider for dyn Error + 'b {
impl<E> Provider for E
where
E: Error,
{
fn provide<'a>(&'a self, req: &mut Demand<'a>) {
self.provide(req)
}
Expand Down

0 comments on commit 6375088

Please sign in to comment.