Skip to content

Commit

Permalink
Merge #29
Browse files Browse the repository at this point in the history
29: fix: Do not needs-hash annotation when it is already supplied r=jaysonsantos a=jaysonsantos



Co-authored-by: Jayson Reis <[email protected]>
  • Loading branch information
bors[bot] and jaysonsantos authored Jun 22, 2022
2 parents f6dfbf0 + 6a91756 commit f7467a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/maps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ pub fn generate_output_map(
match annotations {
Metadata::String(_) => panic!("{} shoult not be a string at this point", ANNOTATIONS_KEY),
Metadata::HashMap(h) => {
h.insert(ANNOTATION_NEEDS_HASH.into(), "true".into());
if !h.contains_key(ANNOTATION_NEEDS_HASH) {
h.insert(ANNOTATION_NEEDS_HASH.into(), "true".into());
}
}
}

Expand Down

0 comments on commit f7467a3

Please sign in to comment.