File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
rust/signed_doc/src/validator Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -159,12 +159,10 @@ fn proposal_submission_action_rule() -> Rules {
159159
160160/// `DOCUMENT_RULES` initialization function
161161fn 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 (
You can’t perform that action at this time.
0 commit comments