File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -308,13 +308,31 @@ trait IsSuccess {
308
308
fn is_success ( & self ) -> bool ;
309
309
}
310
310
311
- impl IsSuccess for coordinator:: WithOutput < coordinator:: CompileResponse > {
311
+ impl < T > IsSuccess for & T
312
+ where
313
+ T : IsSuccess ,
314
+ {
315
+ fn is_success ( & self ) -> bool {
316
+ T :: is_success ( self )
317
+ }
318
+ }
319
+
320
+ impl < T > IsSuccess for coordinator:: WithOutput < T >
321
+ where
322
+ T : IsSuccess ,
323
+ {
324
+ fn is_success ( & self ) -> bool {
325
+ self . response . is_success ( )
326
+ }
327
+ }
328
+
329
+ impl IsSuccess for coordinator:: CompileResponse {
312
330
fn is_success ( & self ) -> bool {
313
331
self . success
314
332
}
315
333
}
316
334
317
- impl IsSuccess for coordinator:: WithOutput < coordinator :: ExecuteResponse > {
335
+ impl IsSuccess for coordinator:: ExecuteResponse {
318
336
fn is_success ( & self ) -> bool {
319
337
self . success
320
338
}
You can’t perform that action at this time.
0 commit comments