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

Clippy bump & fixing warnings #1219

Merged
merged 3 commits into from
Jun 6, 2016
Merged

Clippy bump & fixing warnings #1219

merged 3 commits into from
Jun 6, 2016

Conversation

tomusdrw
Copy link
Collaborator

@tomusdrw tomusdrw commented Jun 3, 2016

Note: Don't use '_ in new code, it's being phased-out.
rust-lang/rfcs#1177

@tomusdrw tomusdrw added the A0-pleasereview 🤓 Pull request needs code review. label Jun 3, 2016
@@ -162,6 +162,7 @@ impl NetworkProtocolHandler<SyncMessage> for EthSync {
self.sync.write().unwrap().maintain_sync(&mut NetSyncIo::new(io, self.chain.deref()));
}

#[cfg_attr(feature="dev", allow(single_match))]
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess they want you to use "if let" instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but it looks much better as is imho.

Copy link
Contributor

@rphmeier rphmeier Jun 4, 2016

Choose a reason for hiding this comment

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

i agree, seems like that lint is too subjective

@rphmeier rphmeier added A7-looksgoodcantmerge 🙄 Pull request is reviewed well, but cannot be merged due to conflicts. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 4, 2016
Conflicts:
	dapps/Cargo.toml
@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. and removed A7-looksgoodcantmerge 🙄 Pull request is reviewed well, but cannot be merged due to conflicts. labels Jun 6, 2016
@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 6, 2016
@arkpar arkpar merged commit 98d9752 into master Jun 6, 2016
@tomusdrw tomusdrw deleted the clippy-bump branch June 11, 2016 15:58
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants