From 637508898ec5ad78c269024ecd9094231b51eaad Mon Sep 17 00:00:00 2001 From: Jane Losare-Lusby Date: Wed, 10 Aug 2022 20:19:11 +0000 Subject: [PATCH] make provider impl into a blanket impl --- library/core/src/error.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/core/src/error.rs b/library/core/src/error.rs index 2259415ec8a39..8b2e538e87f1d 100644 --- a/library/core/src/error.rs +++ b/library/core/src/error.rs @@ -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 Provider for E +where + E: Error, +{ fn provide<'a>(&'a self, req: &mut Demand<'a>) { self.provide(req) }