Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

triehash is separated from util #6428

Merged
merged 3 commits into from
Sep 3, 2017
Merged

triehash is separated from util #6428

merged 3 commits into from
Sep 3, 2017

Conversation

debris
Copy link
Collaborator

@debris debris commented Aug 31, 2017

part of #6418

@debris debris added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Aug 31, 2017
@@ -23,7 +23,7 @@ use hash::keccak;
use views::BlockView;
use rlp::{DecoderError, RlpStream, UntrustedRlp};
use util::{Bytes, H256};
use util::triehash::ordered_trie_root;
use triehash::ordered_trie_root;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used only once in the code, could be referenced by global path instead of use, as in the test

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some rules for the usage of use in parity project? (it currently seems not though)
For example:

  • make the self-host libs a group and third party libs a group
  • sort it alphabetically within the group
  • make it clear when to use *
  • make it clear when to use global path
  • others

I think we can make those rules in the CONTRIBUTION.md and make contributors to follow those rules.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have such rules currently, although I totally agree that we should have them

@NikVolf NikVolf added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 2, 2017
@debris debris mentioned this pull request Sep 2, 2017
@gavofyork gavofyork merged commit b731cce into master Sep 3, 2017
@gavofyork gavofyork deleted the triehash branch September 3, 2017 07:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants