@@ -22,7 +22,8 @@ use crate::credential_cache::{self, CredentialCache};
2222pub enum Error {
2323 #[ snafu( display( "failed to retrieve LDAP TLS CA {ca_ref}" ) ) ]
2424 GetLdapTlsCa {
25- source : kube:: Error ,
25+ #[ snafu( source( from( kube:: Error , Box :: new) ) ) ]
26+ source : Box < kube:: Error > ,
2627 ca_ref : ObjectRef < Secret > ,
2728 } ,
2829
@@ -33,7 +34,10 @@ pub enum Error {
3334 ParseLdapTlsCa { source : native_tls:: Error } ,
3435
3536 #[ snafu( display( "password cache error" ) ) ]
36- PasswordCache { source : credential_cache:: Error } ,
37+ PasswordCache {
38+ #[ snafu( source( from( credential_cache:: Error , Box :: new) ) ) ]
39+ source : Box < credential_cache:: Error > ,
40+ } ,
3741
3842 #[ snafu( display( "failed to configure LDAP TLS" ) ) ]
3943 ConfigureLdapTls { source : native_tls:: Error } ,
@@ -58,7 +62,8 @@ pub enum Error {
5862 link = "https://docs.stackable.tech/home/nightly/secret-operator/troubleshooting.html#active-directory-ldap-user-conflict"
5963 ) ) ]
6064 CreateLdapUserConflict {
61- source : ldap3:: LdapError ,
65+ #[ snafu( source( from( ldap3:: LdapError , Box :: new) ) ) ]
66+ source : Box < ldap3:: LdapError > ,
6267 password_cache_ref : ObjectRef < Secret > ,
6368 } ,
6469
0 commit comments