@@ -7,7 +7,7 @@ use clap::Parser as _;
77use crd:: { OpenSearchCluster , OpenSearchClusterVersion , v1alpha1} ;
88use framework:: types:: operator:: OperatorName ;
99use futures:: { FutureExt , StreamExt } ;
10- use snafu:: { ResultExt as _ , Snafu , futures:: TryFutureExt } ;
10+ use snafu:: { ResultExt , Snafu , futures:: TryFutureExt } ;
1111use stackable_operator:: {
1212 YamlSchema as _,
1313 cli:: { Command , RunArguments } ,
@@ -72,7 +72,8 @@ pub enum Error {
7272
7373 #[ snafu( display( "failed to create Kubernetes client" ) ) ]
7474 CreateClient {
75- source : stackable_operator:: client:: Error ,
75+ #[ snafu( source( from( stackable_operator:: client:: Error , Box :: new) ) ) ]
76+ source : Box < stackable_operator:: client:: Error > ,
7677 } ,
7778
7879 #[ snafu( display( "failed to create SIGTERM signal watcher" ) ) ]
@@ -81,17 +82,22 @@ pub enum Error {
8182 } ,
8283
8384 #[ snafu( display( "failed to create webhook server" ) ) ]
84- CreateWebhook { source : webhooks:: conversion:: Error } ,
85+ CreateWebhook {
86+ #[ snafu( source( from( webhooks:: conversion:: Error , Box :: new) ) ) ]
87+ source : Box < webhooks:: conversion:: Error > ,
88+ } ,
8589
8690 #[ snafu( display( "failed to run webhook server" ) ) ]
8791 RunWebhook {
88- source : stackable_operator:: webhook:: WebhookServerError ,
92+ #[ snafu( source( from( stackable_operator:: webhook:: WebhookServerError , Box :: new) ) ) ]
93+ source : Box < stackable_operator:: webhook:: WebhookServerError > ,
8994 } ,
9095
9196 #[ snafu( display( "failed to establish if CRD {crd_name:?} is available" ) ) ]
9297 EstablishCrd {
9398 crd_name : String ,
94- source : stackable_operator:: utils:: signal:: CrdEstablishedError ,
99+ #[ snafu( source( from( stackable_operator:: utils:: signal:: CrdEstablishedError , Box :: new) ) ) ]
100+ source : Box < stackable_operator:: utils:: signal:: CrdEstablishedError > ,
95101 } ,
96102}
97103
0 commit comments