@@ -54,7 +54,7 @@ pub enum Error {
54
54
#[ snafu( display( "object does not refer to ZookeeperCluster" ) ) ]
55
55
InvalidZkReference ,
56
56
57
- #[ snafu( display( "could not find {}" , zk ) ) ]
57
+ #[ snafu( display( "could not find {zk:?}" ) ) ]
58
58
FindZk {
59
59
source : stackable_operator:: client:: Error ,
60
60
zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
@@ -65,30 +65,30 @@ pub enum Error {
65
65
zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
66
66
} ,
67
67
68
- #[ snafu( display( "could not find server role service name for {}" , zk ) ) ]
68
+ #[ snafu( display( "could not find server role service name for {zk:?}" ) ) ]
69
69
NoZkSvcName {
70
70
zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
71
71
} ,
72
72
73
- #[ snafu( display( "could not find server role service for {}" , zk ) ) ]
73
+ #[ snafu( display( "could not find server role service for {zk:?}" ) ) ]
74
74
FindZkSvc {
75
75
source : stackable_operator:: client:: Error ,
76
76
zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
77
77
} ,
78
78
79
- #[ snafu( display( "failed to calculate FQDN for {}" , zk ) ) ]
79
+ #[ snafu( display( "failed to calculate FQDN for {zk:?}" ) ) ]
80
80
NoZkFqdn {
81
81
zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
82
82
} ,
83
83
84
- #[ snafu( display( "failed to ensure that ZNode {} exists in {}" , znode_path , zk ) ) ]
84
+ #[ snafu( display( "failed to ensure that ZNode {znode_path:? } exists in {zk:?}" ) ) ]
85
85
EnsureZnode {
86
86
source : znode_mgmt:: Error ,
87
87
zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
88
88
znode_path : String ,
89
89
} ,
90
90
91
- #[ snafu( display( "failed to ensure that ZNode {} is missing from {}" , znode_path , zk ) ) ]
91
+ #[ snafu( display( "failed to ensure that ZNode {znode_path:? } is missing from {zk:?}" ) ) ]
92
92
EnsureZnodeMissing {
93
93
source : znode_mgmt:: Error ,
94
94
zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
@@ -98,7 +98,7 @@ pub enum Error {
98
98
#[ snafu( display( "failed to build discovery information" ) ) ]
99
99
BuildDiscoveryConfigMap { source : discovery:: Error } ,
100
100
101
- #[ snafu( display( "failed to save discovery information to {}" , cm ) ) ]
101
+ #[ snafu( display( "failed to save discovery information to {cm:?}" ) ) ]
102
102
ApplyDiscoveryConfigMap {
103
103
source : stackable_operator:: cluster_resources:: Error ,
104
104
cm : ObjectRef < ConfigMap > ,
@@ -442,34 +442,34 @@ mod znode_mgmt {
442
442
source : std:: io:: Error ,
443
443
addr : String ,
444
444
} ,
445
- #[ snafu( display( "address {} did not resolve to any socket addresses" , addr ) ) ]
445
+ #[ snafu( display( "address {addr:? } did not resolve to any socket addresses" ) ) ]
446
446
AddrResolution { addr : String } ,
447
- #[ snafu( display( "failed to connect to {}" , addr ) ) ]
447
+ #[ snafu( display( "failed to connect to {addr:?}" ) ) ]
448
448
Connect {
449
449
source : tokio_zookeeper:: error:: Error ,
450
450
addr : SocketAddr ,
451
451
} ,
452
- #[ snafu( display( "protocol error creating znode {}" , path ) ) ]
452
+ #[ snafu( display( "protocol error creating znode {path:?}" ) ) ]
453
453
CreateZnodeProtocol {
454
454
source : tokio_zookeeper:: error:: Error ,
455
455
path : String ,
456
456
} ,
457
- #[ snafu( display( "failed to create znode {}" , path ) ) ]
457
+ #[ snafu( display( "failed to create znode {path:?}" ) ) ]
458
458
CreateZnode {
459
459
source : tokio_zookeeper:: error:: Create ,
460
460
path : String ,
461
461
} ,
462
- #[ snafu( display( "protocol error deleting znode {}" , path ) ) ]
462
+ #[ snafu( display( "protocol error deleting znode {path:?}" ) ) ]
463
463
DeleteZnodeProtocol {
464
464
source : tokio_zookeeper:: error:: Error ,
465
465
path : String ,
466
466
} ,
467
- #[ snafu( display( "failed to delete znode {}" , path ) ) ]
467
+ #[ snafu( display( "failed to delete znode {path:?}" ) ) ]
468
468
DeleteZnode {
469
469
source : tokio_zookeeper:: error:: Delete ,
470
470
path : String ,
471
471
} ,
472
- #[ snafu( display( "failed to find children to delete of {}" , path ) ) ]
472
+ #[ snafu( display( "failed to find children to delete of {path:?}" ) ) ]
473
473
DeleteZnodeFindChildrenProtocol {
474
474
source : tokio_zookeeper:: error:: Error ,
475
475
path : String ,
0 commit comments