Run clippy on features code too

This commit is contained in:
Noah Vesely
2018-05-15 17:31:50 -05:00
committed by Romain Ruetschi
parent 00bd5c8ce5
commit b14c066db9
2 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ matrix:
before_script:
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
script:
- cargo clippy -- -D clippy
- cargo clippy --all -- -D clippy
env:
global:

View File

@ -137,8 +137,8 @@ impl LemmaProto {
// then we expect it to unserialize to a valid `Lemma`,
// otherwise we return `None`
self.take_sub_lemma().into_lemma().map(|sub_lemma| Lemma {
node_hash: node_hash,
sibling_hash: sibling_hash,
node_hash,
sibling_hash,
sub_lemma: Some(Box::new(sub_lemma)),
})
} else {
@ -146,8 +146,8 @@ impl LemmaProto {
// in which case we just set it to `None`,
// but still return a potentially valid `Lemma`.
Some(Lemma {
node_hash: node_hash,
sibling_hash: sibling_hash,
node_hash,
sibling_hash,
sub_lemma: None,
})
}