Skip to content

Commit 6375088

Browse files
committed
make provider impl into a blanket impl
1 parent 813b5de commit 6375088

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/core/src/error.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ pub trait Error: Debug + Display {
206206
}
207207

208208
#[unstable(feature = "error_generic_member_access", issue = "99301")]
209-
impl<'b> Provider for dyn Error + 'b {
209+
impl<E> Provider for E
210+
where
211+
E: Error,
212+
{
210213
fn provide<'a>(&'a self, req: &mut Demand<'a>) {
211214
self.provide(req)
212215
}

0 commit comments

Comments
 (0)