We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6dfbf0 commit 6a91756Copy full SHA for 6a91756
src/maps.rs
@@ -50,7 +50,9 @@ pub fn generate_output_map(
50
match annotations {
51
Metadata::String(_) => panic!("{} shoult not be a string at this point", ANNOTATIONS_KEY),
52
Metadata::HashMap(h) => {
53
- h.insert(ANNOTATION_NEEDS_HASH.into(), "true".into());
+ if !h.contains_key(ANNOTATION_NEEDS_HASH) {
54
+ h.insert(ANNOTATION_NEEDS_HASH.into(), "true".into());
55
+ }
56
}
57
58
0 commit comments