Skip to content

Commit bf14b55

Browse files
committed
wip
1 parent fb8afee commit bf14b55

File tree

1 file changed

+3
-5
lines changed
  • rust/signed_doc/src/validator

1 file changed

+3
-5
lines changed

rust/signed_doc/src/validator/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,10 @@ fn proposal_submission_action_rule() -> Rules {
159159

160160
/// `DOCUMENT_RULES` initialization function
161161
fn document_rules_init() -> HashMap<DocType, Rules> {
162-
let mut document_rules_map = HashMap::new();
163-
164-
for (doc_type, rule) in documents_rules() {
165-
document_rules_map.insert(doc_type, rule);
166-
}
162+
let mut document_rules_map: HashMap<DocType, Rules> = documents_rules().collect();
167163

164+
// TODO: remove this redefinitions of the validation rules after
165+
// `catalyst_signed_documents_rules!` macro would be fully finished
168166
document_rules_map.insert(PROPOSAL.clone(), proposal_rule());
169167
document_rules_map.insert(PROPOSAL_COMMENT.clone(), proposal_comment_rule());
170168
document_rules_map.insert(

0 commit comments

Comments
 (0)