We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17458e1 commit 8f6daa0Copy full SHA for 8f6daa0
1 file changed
crates/stackable-operator/src/kvp/mod.rs
@@ -239,8 +239,7 @@ mod test {
239
240
#[test]
241
fn try_from_tuple() {
242
- let label =
243
- KeyValuePair::<LabelValue>::try_from(("stackable.tech/vendor", "Stackable")).unwrap();
+ let label = Label::try_from(("stackable.tech/vendor", "Stackable")).unwrap();
244
245
assert_eq!(label.key, Key::from_str("stackable.tech/vendor").unwrap());
246
assert_eq!(label.value, LabelValue::from_str("Stackable").unwrap());
@@ -276,7 +275,7 @@ mod test {
276
275
KeyValuePair::try_from(("stackable.tech/vendor", "Stackable")).unwrap(),
277
]);
278
279
- let map: BTreeMap<String, String> = labels.to_unvalidated();
+ let map = labels.to_unvalidated();
280
assert_eq!(map.len(), 2);
281
}
282
0 commit comments