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

Clippy bump #2877

Merged
merged 4 commits into from
Oct 27, 2016
Merged

Clippy bump #2877

merged 4 commits into from
Oct 27, 2016

Conversation

tomusdrw
Copy link
Collaborator

into_iter is implicit
https://doc.rust-lang.org/std/iter/index.html#for-loops-and-intoiterator

Some lints ignored on method level to avoid unecessary (sometimes hard) refactorings

@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Oct 26, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. and removed A0-pleasereview 🤓 Pull request needs code review. A8-looksgood 🦄 Pull request is reviewed well. labels Oct 26, 2016
@@ -115,9 +115,7 @@ impl Ord for TransactionOrigin {
}

match (*self, *other) {
(TransactionOrigin::RetractedBlock, _) => Ordering::Less,
(_, TransactionOrigin::RetractedBlock) => Ordering::Greater,
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not equivalent.

Copy link
Contributor

Choose a reason for hiding this comment

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

(TransactionOrigin::Local, TransactionOrigin::RetractedBlock) would give Ordering::Greater originally and Ordering::Less after this PR.

@gavofyork gavofyork added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. A7-looksgoodtestsfail 🤖 Pull request is reviewed well, but cannot be merged due to tests failing. labels Oct 26, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. labels Oct 26, 2016
@gavofyork gavofyork merged commit 8899780 into master Oct 27, 2016
@gavofyork gavofyork deleted the clippy-bump branch October 27, 2016 06:28
@tomusdrw
Copy link
Collaborator Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants