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

Fixing clippy stuff #170

Merged
merged 11 commits into from
Jan 22, 2016
Merged

Fixing clippy stuff #170

merged 11 commits into from
Jan 22, 2016

Conversation

Some(v) => return Some(v.clone()),
None => ()
if let Some(v) = read.get(hash) {
return Some(v.clone());
Copy link
Collaborator

Choose a reason for hiding this comment

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

even better:

read.get(hash).map(Clone::clone)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

nvm. I haven't noticed that this is quick return.

@tomusdrw tomusdrw changed the title Fixing clippy stuff - work in progress Fixing clippy stuff Jan 19, 2016
@tomusdrw tomusdrw added the A0-pleasereview 🤓 Pull request needs code review. label Jan 19, 2016
@@ -24,6 +24,7 @@ heapsize = "0.2"
itertools = "0.4"
slab = { git = "https://github.com/arkpar/slab.git" }
sha3 = { path = "sha3" }
clippy = "*" # Always newest, since we use nightly
Copy link
Collaborator

Choose a reason for hiding this comment

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

I read yesterday, that crates.io will start banning crates using wildcards starting at 22 January

@debris debris added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 20, 2016
debris added a commit that referenced this pull request Jan 22, 2016
@debris debris merged commit f3d1926 into master Jan 22, 2016
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.

2 participants