File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/stackable-operator/src/kvp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ where
152
152
153
153
#[ derive( Debug , PartialEq , Snafu ) ]
154
154
pub enum KeyValuePairsError {
155
- #[ snafu( display( "key/value pair already exists" ) ) ]
156
- PairAlreadyExists ,
155
+ #[ snafu( display( "key already exists" ) ) ]
156
+ KeyAlreadyExists ,
157
157
}
158
158
159
159
/// A validated set/list of Kubernetes key/value pairs.
@@ -304,7 +304,7 @@ where
304
304
/// If the list already had this key present, nothing is updated, and an
305
305
/// error is returned.
306
306
pub fn try_insert ( & mut self , kvp : KeyValuePair < T > ) -> Result < ( ) , KeyValuePairsError > {
307
- ensure ! ( !self . 0 . contains_key( & kvp. key) , PairAlreadyExistsSnafu ) ;
307
+ ensure ! ( !self . 0 . contains_key( & kvp. key) , KeyAlreadyExistsSnafu ) ;
308
308
self . insert ( kvp) ;
309
309
Ok ( ( ) )
310
310
}
You can’t perform that action at this time.
0 commit comments