mirror of
https://github.com/mii443/merkle.rs.git
synced 2025-09-02 23:29:16 +00:00
Run clippy on features code too
This commit is contained in:
committed by
Romain Ruetschi
parent
00bd5c8ce5
commit
b14c066db9
@ -47,7 +47,7 @@ matrix:
|
|||||||
before_script:
|
before_script:
|
||||||
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
|
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
|
||||||
script:
|
script:
|
||||||
- cargo clippy -- -D clippy
|
- cargo clippy --all -- -D clippy
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
@ -137,8 +137,8 @@ impl LemmaProto {
|
|||||||
// then we expect it to unserialize to a valid `Lemma`,
|
// then we expect it to unserialize to a valid `Lemma`,
|
||||||
// otherwise we return `None`
|
// otherwise we return `None`
|
||||||
self.take_sub_lemma().into_lemma().map(|sub_lemma| Lemma {
|
self.take_sub_lemma().into_lemma().map(|sub_lemma| Lemma {
|
||||||
node_hash: node_hash,
|
node_hash,
|
||||||
sibling_hash: sibling_hash,
|
sibling_hash,
|
||||||
sub_lemma: Some(Box::new(sub_lemma)),
|
sub_lemma: Some(Box::new(sub_lemma)),
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
@ -146,8 +146,8 @@ impl LemmaProto {
|
|||||||
// in which case we just set it to `None`,
|
// in which case we just set it to `None`,
|
||||||
// but still return a potentially valid `Lemma`.
|
// but still return a potentially valid `Lemma`.
|
||||||
Some(Lemma {
|
Some(Lemma {
|
||||||
node_hash: node_hash,
|
node_hash,
|
||||||
sibling_hash: sibling_hash,
|
sibling_hash,
|
||||||
sub_lemma: None,
|
sub_lemma: None,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user