@@ -53,7 +53,10 @@ pub enum Error {
5353 MissingObjectKey { key : & ' static str } ,
5454
5555 #[ snafu( display( "failed to list cluster resources with label selector" ) ) ]
56- ListClusterResources { source : crate :: client:: Error } ,
56+ ListClusterResources {
57+ #[ snafu( source( from( crate :: client:: Error , Box :: new) ) ) ]
58+ source : Box < crate :: client:: Error > ,
59+ } ,
5760
5861 #[ snafu( display( "label {label:?} is missing" ) ) ]
5962 MissingLabel { label : & ' static str } ,
@@ -68,13 +71,22 @@ pub enum Error {
6871 } ,
6972
7073 #[ snafu( display( "failed to get resource" ) ) ]
71- GetResource { source : crate :: client:: Error } ,
74+ GetResource {
75+ #[ snafu( source( from( crate :: client:: Error , Box :: new) ) ) ]
76+ source : Box < crate :: client:: Error > ,
77+ } ,
7278
7379 #[ snafu( display( "failed to apply patch" ) ) ]
74- ApplyPatch { source : crate :: client:: Error } ,
80+ ApplyPatch {
81+ #[ snafu( source( from( crate :: client:: Error , Box :: new) ) ) ]
82+ source : Box < crate :: client:: Error > ,
83+ } ,
7584
7685 #[ snafu( display( "failed to delete orphaned resource" ) ) ]
77- DeleteOrphanedResource { source : crate :: client:: Error } ,
86+ DeleteOrphanedResource {
87+ #[ snafu( source( from( crate :: client:: Error , Box :: new) ) ) ]
88+ source : Box < crate :: client:: Error > ,
89+ } ,
7890}
7991
8092/// A cluster resource handled by [`ClusterResources`].
0 commit comments