mirror of
https://github.com/mii443/merkle.rs.git
synced 2025-08-22 16:05:30 +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:
|
||||
- cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
|
||||
script:
|
||||
- cargo clippy -- -D clippy
|
||||
- cargo clippy --all -- -D clippy
|
||||
|
||||
env:
|
||||
global:
|
||||
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user