Skip to content

Commit f7467a3

Browse files
Merge #29
29: fix: Do not needs-hash annotation when it is already supplied r=jaysonsantos a=jaysonsantos Co-authored-by: Jayson Reis <[email protected]>
2 parents f6dfbf0 + 6a91756 commit f7467a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/maps.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ pub fn generate_output_map(
5050
match annotations {
5151
Metadata::String(_) => panic!("{} shoult not be a string at this point", ANNOTATIONS_KEY),
5252
Metadata::HashMap(h) => {
53-
h.insert(ANNOTATION_NEEDS_HASH.into(), "true".into());
53+
if !h.contains_key(ANNOTATION_NEEDS_HASH) {
54+
h.insert(ANNOTATION_NEEDS_HASH.into(), "true".into());
55+
}
5456
}
5557
}
5658

0 commit comments

Comments
 (0)