1313// limitations under the License.
1414
1515use crate :: exn:: Exn ;
16- use std:: error:: Error ;
1716
1817/// A trait bound of the supported error type of [`Exn`].
1918pub trait ErrorExt : std:: error:: Error + Send + Sync + ' static {
@@ -37,7 +36,7 @@ pub trait ErrorExt: std::error::Error + Send + Sync + 'static {
3736
3837 /// Raise this error as a new exception, with `sources` as causes.
3938 #[ track_caller]
40- fn raise_iter < T , I > ( self , sources : I ) -> Exn < Self >
39+ fn raise_all < T , I > ( self , sources : I ) -> Exn < Self >
4140 where
4241 Self : Sized ,
4342 T : std:: error:: Error + Send + Sync + ' static ,
@@ -123,7 +122,7 @@ pub trait ResultExt {
123122 F : FnOnce ( ) -> A ;
124123}
125124
126- impl < T , E > ResultExt for std :: result :: Result < T , E >
125+ impl < T , E > ResultExt for Result < T , E >
127126where
128127 E : std:: error:: Error + Send + Sync + ' static ,
129128{
@@ -153,14 +152,14 @@ where
153152 #[ track_caller]
154153 fn or_raise_erased < A , F > ( self , err : F ) -> Result < Self :: Success , Exn >
155154 where
156- A : Error + Send + Sync + ' static ,
155+ A : std :: error :: Error + Send + Sync + ' static ,
157156 F : FnOnce ( ) -> A ,
158157 {
159158 self . or_raise ( err) . map_err ( Exn :: erased)
160159 }
161160}
162161
163- impl < T , E > ResultExt for std :: result :: Result < T , Exn < E > >
162+ impl < T , E > ResultExt for Result < T , Exn < E > >
164163where
165164 E : std:: error:: Error + Send + Sync + ' static ,
166165{
@@ -190,7 +189,7 @@ where
190189 #[ track_caller]
191190 fn or_raise_erased < A , F > ( self , err : F ) -> Result < Self :: Success , Exn >
192191 where
193- A : Error + Send + Sync + ' static ,
192+ A : std :: error :: Error + Send + Sync + ' static ,
194193 F : FnOnce ( ) -> A ,
195194 {
196195 self . or_raise ( err) . map_err ( Exn :: erased)
0 commit comments