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 275ea84 commit 20450e6Copy full SHA for 20450e6
packages/std/src/metadata.rs
@@ -60,9 +60,8 @@ mod unit_tests {
60
serde_json::from_value(json_with_null_denom_units).unwrap();
61
assert_eq!(
62
metadata_null_denom_units.denom_units,
63
- Vec::<DenomUnit>::default()
+ Vec::<DenomUnit>::new()
64
);
65
- assert!(metadata_null_denom_units.denom_units.is_empty());
66
67
// Test normal case with provided denom_units
68
let json_with_units = json!({
0 commit comments