@@ -65,13 +65,13 @@ enum PublishError {
65
65
#[ snafu( display( "backend failed to get secret data" ) ) ]
66
66
BackendGetSecretData { source : backend:: dynamic:: DynError } ,
67
67
68
- #[ snafu( display( "failed to create secret parent dir {}" , path . display ( ) ) ) ]
68
+ #[ snafu( display( "failed to create secret parent dir {path:?}" ) ) ]
69
69
CreateDir {
70
70
source : std:: io:: Error ,
71
71
path : PathBuf ,
72
72
} ,
73
73
74
- #[ snafu( display( "failed to mount volume mount directory {}" , path . display ( ) ) ) ]
74
+ #[ snafu( display( "failed to mount volume mount directory {path:?}" ) ) ]
75
75
Mount {
76
76
source : std:: io:: Error ,
77
77
path : PathBuf ,
@@ -80,28 +80,28 @@ enum PublishError {
80
80
#[ snafu( display( "failed to convert secret data into desired format" ) ) ]
81
81
FormatData { source : format:: IntoFilesError } ,
82
82
83
- #[ snafu( display( "failed to set volume permissions for {}" , path . display ( ) ) ) ]
83
+ #[ snafu( display( "failed to set volume permissions for {path:?}" ) ) ]
84
84
SetDirPermissions {
85
85
source : std:: io:: Error ,
86
86
path : PathBuf ,
87
87
} ,
88
88
89
- #[ snafu( display( "failed to create secret file {}" , path . display ( ) ) ) ]
89
+ #[ snafu( display( "failed to create secret file {path:?}" ) ) ]
90
90
CreateFile {
91
91
source : std:: io:: Error ,
92
92
path : PathBuf ,
93
93
} ,
94
94
95
- #[ snafu( display( "failed to write secret file {}" , path . display ( ) ) ) ]
95
+ #[ snafu( display( "failed to write secret file {path:?}" ) ) ]
96
96
WriteFile {
97
97
source : std:: io:: Error ,
98
98
path : PathBuf ,
99
99
} ,
100
100
101
- #[ snafu( display( "file path {} must not contain more than one component" , path . display ( ) ) ) ]
101
+ #[ snafu( display( "file path {path:? } must not contain more than one component" ) ) ]
102
102
InvalidComponentCount { path : PathBuf } ,
103
103
104
- #[ snafu( display( "file path {} must not be absolute" , path . display ( ) ) ) ]
104
+ #[ snafu( display( "file path {path:? } must not be absolute" ) ) ]
105
105
InvalidAbsolutePath { path : PathBuf } ,
106
106
107
107
#[ snafu( display( "failed to tag pod with expiry metadata" ) ) ]
0 commit comments