@@ -54,7 +54,7 @@ pub enum Error {
5454 #[ snafu( display( "object does not refer to ZookeeperCluster" ) ) ]
5555 InvalidZkReference ,
5656
57- #[ snafu( display( "could not find {}" , zk ) ) ]
57+ #[ snafu( display( "could not find {zk:?}" ) ) ]
5858 FindZk {
5959 source : stackable_operator:: client:: Error ,
6060 zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
@@ -65,30 +65,30 @@ pub enum Error {
6565 zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
6666 } ,
6767
68- #[ snafu( display( "could not find server role service name for {}" , zk ) ) ]
68+ #[ snafu( display( "could not find server role service name for {zk:?}" ) ) ]
6969 NoZkSvcName {
7070 zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
7171 } ,
7272
73- #[ snafu( display( "could not find server role service for {}" , zk ) ) ]
73+ #[ snafu( display( "could not find server role service for {zk:?}" ) ) ]
7474 FindZkSvc {
7575 source : stackable_operator:: client:: Error ,
7676 zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
7777 } ,
7878
79- #[ snafu( display( "failed to calculate FQDN for {}" , zk ) ) ]
79+ #[ snafu( display( "failed to calculate FQDN for {zk:?}" ) ) ]
8080 NoZkFqdn {
8181 zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
8282 } ,
8383
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:?}" ) ) ]
8585 EnsureZnode {
8686 source : znode_mgmt:: Error ,
8787 zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
8888 znode_path : String ,
8989 } ,
9090
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:?}" ) ) ]
9292 EnsureZnodeMissing {
9393 source : znode_mgmt:: Error ,
9494 zk : ObjectRef < v1alpha1:: ZookeeperCluster > ,
@@ -98,7 +98,7 @@ pub enum Error {
9898 #[ snafu( display( "failed to build discovery information" ) ) ]
9999 BuildDiscoveryConfigMap { source : discovery:: Error } ,
100100
101- #[ snafu( display( "failed to save discovery information to {}" , cm ) ) ]
101+ #[ snafu( display( "failed to save discovery information to {cm:?}" ) ) ]
102102 ApplyDiscoveryConfigMap {
103103 source : stackable_operator:: cluster_resources:: Error ,
104104 cm : ObjectRef < ConfigMap > ,
@@ -442,34 +442,34 @@ mod znode_mgmt {
442442 source : std:: io:: Error ,
443443 addr : String ,
444444 } ,
445- #[ snafu( display( "address {} did not resolve to any socket addresses" , addr ) ) ]
445+ #[ snafu( display( "address {addr:? } did not resolve to any socket addresses" ) ) ]
446446 AddrResolution { addr : String } ,
447- #[ snafu( display( "failed to connect to {}" , addr ) ) ]
447+ #[ snafu( display( "failed to connect to {addr:?}" ) ) ]
448448 Connect {
449449 source : tokio_zookeeper:: error:: Error ,
450450 addr : SocketAddr ,
451451 } ,
452- #[ snafu( display( "protocol error creating znode {}" , path ) ) ]
452+ #[ snafu( display( "protocol error creating znode {path:?}" ) ) ]
453453 CreateZnodeProtocol {
454454 source : tokio_zookeeper:: error:: Error ,
455455 path : String ,
456456 } ,
457- #[ snafu( display( "failed to create znode {}" , path ) ) ]
457+ #[ snafu( display( "failed to create znode {path:?}" ) ) ]
458458 CreateZnode {
459459 source : tokio_zookeeper:: error:: Create ,
460460 path : String ,
461461 } ,
462- #[ snafu( display( "protocol error deleting znode {}" , path ) ) ]
462+ #[ snafu( display( "protocol error deleting znode {path:?}" ) ) ]
463463 DeleteZnodeProtocol {
464464 source : tokio_zookeeper:: error:: Error ,
465465 path : String ,
466466 } ,
467- #[ snafu( display( "failed to delete znode {}" , path ) ) ]
467+ #[ snafu( display( "failed to delete znode {path:?}" ) ) ]
468468 DeleteZnode {
469469 source : tokio_zookeeper:: error:: Delete ,
470470 path : String ,
471471 } ,
472- #[ snafu( display( "failed to find children to delete of {}" , path ) ) ]
472+ #[ snafu( display( "failed to find children to delete of {path:?}" ) ) ]
473473 DeleteZnodeFindChildrenProtocol {
474474 source : tokio_zookeeper:: error:: Error ,
475475 path : String ,
0 commit comments