Skip to content

Merge pull request #323 from defuse/nu5-consensus-labeled #1005

Merge pull request #323 from defuse/nu5-consensus-labeled

Merge pull request #323 from defuse/nu5-consensus-labeled #1005

Triggered via push November 29, 2023 04:36
Status Failure
Total duration 4m 1s
Artifacts

bench.yml

on: push
Performance regression check
3m 50s
Performance regression check
Fit to window
Zoom out
Zoom in

Annotations

1 error and 17 warnings
Performance regression check
No benchmark result was found in /home/runner/work/orchard/orchard/output.txt. Benchmark output was ''
usage of `Iterator::fold` on a type that implements `Try`: src/value.rs#L201
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/value.rs:201:14 | 201 | iter.fold(Ok(ValueSum(0)), |acc, v| (acc? + v).ok_or(OverflowError)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ValueSum(0), |acc, v| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
usage of `Iterator::fold` on a type that implements `Try`: src/value.rs#L195
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/value.rs:195:14 | 195 | iter.fold(Ok(ValueSum(0)), |acc, v| (acc? + *v).ok_or(OverflowError)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ValueSum(0), |acc, v| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
non-canonical implementation of `partial_cmp` on an `Ord` type: src/primitives/redpallas.rs#L102
warning: non-canonical implementation of `partial_cmp` on an `Ord` type --> src/primitives/redpallas.rs:102:1 | 102 | / impl<T: SigType> PartialOrd for VerificationKey<T> { 103 | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> { | | _____________________________________________________________- 104 | || <[u8; 32]>::from(self).partial_cmp(&<[u8; 32]>::from(other)) 105 | || } | ||_____- help: change this to: `{ Some(self.cmp(other)) }` 106 | | } | |__^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default
explicit call to `.into_iter()` in function argument accepting `IntoIterator`: src/note_encryption.rs#L246
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> src/note_encryption.rs:246:18 | 246 | .zip(ephemeral_keys.into_iter()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `ephemeral_keys` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /rustc/bd45872d96b0866775cd99ce94fc4462647e50f3/library/core/src/iter/traits/iterator.rs:643:12 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
usage of `Iterator::fold` on a type that implements `Try`: src/value.rs#L201
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/value.rs:201:14 | 201 | iter.fold(Ok(ValueSum(0)), |acc, v| (acc? + v).ok_or(OverflowError)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ValueSum(0), |acc, v| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
usage of `Iterator::fold` on a type that implements `Try`: src/value.rs#L195
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/value.rs:195:14 | 195 | iter.fold(Ok(ValueSum(0)), |acc, v| (acc? + *v).ok_or(OverflowError)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ValueSum(0), |acc, v| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
non-canonical implementation of `partial_cmp` on an `Ord` type: src/primitives/redpallas.rs#L102
warning: non-canonical implementation of `partial_cmp` on an `Ord` type --> src/primitives/redpallas.rs:102:1 | 102 | / impl<T: SigType> PartialOrd for VerificationKey<T> { 103 | | fn partial_cmp(&self, other: &Self) -> Option<Ordering> { | | _____________________________________________________________- 104 | || <[u8; 32]>::from(self).partial_cmp(&<[u8; 32]>::from(other)) 105 | || } | ||_____- help: change this to: `{ Some(self.cmp(other)) }` 106 | | } | |__^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl = note: `#[warn(clippy::non_canonical_partial_ord_impl)]` on by default
explicit call to `.into_iter()` in function argument accepting `IntoIterator`: src/note_encryption.rs#L246
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> src/note_encryption.rs:246:18 | 246 | .zip(ephemeral_keys.into_iter()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `ephemeral_keys` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /rustc/bd45872d96b0866775cd99ce94fc4462647e50f3/library/core/src/iter/traits/iterator.rs:643:12 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
usage of `Iterator::fold` on a type that implements `Try`: src/builder.rs#L430
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/builder.rs:430:14 | 430 | .fold(Some(ValueSum::zero()), |acc, action| { | ______________^ 431 | | acc? + action.value_sum() 432 | | }) | |______________^ help: use `try_fold` instead: `try_fold(ValueSum::zero(), |acc, action| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
explicit call to `.into_iter()` in function argument accepting `IntoIterator`: src/builder.rs#L418
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> src/builder.rs:418:22 | 418 | .zip(self.recipients.into_iter()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `self.recipients` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /rustc/bd45872d96b0866775cd99ce94fc4462647e50f3/library/core/src/iter/traits/iterator.rs:643:12 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
usage of `Iterator::fold` on a type that implements `Try`: src/builder.rs#L379
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/builder.rs:379:14 | 379 | .fold(Some(ValueSum::zero()), |acc, note_value| acc? + note_value) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ValueSum::zero(), |acc, note_value| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold = note: `#[warn(clippy::manual_try_fold)]` on by default
usage of `Iterator::fold` on a type that implements `Try`: src/builder.rs#L430
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/builder.rs:430:14 | 430 | .fold(Some(ValueSum::zero()), |acc, action| { | ______________^ 431 | | acc? + action.value_sum() 432 | | }) | |______________^ help: use `try_fold` instead: `try_fold(ValueSum::zero(), |acc, action| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold
explicit call to `.into_iter()` in function argument accepting `IntoIterator`: src/builder.rs#L418
warning: explicit call to `.into_iter()` in function argument accepting `IntoIterator` --> src/builder.rs:418:22 | 418 | .zip(self.recipients.into_iter()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing the `.into_iter()`: `self.recipients` | note: this parameter accepts any `IntoIterator`, so you don't need to call `.into_iter()` --> /rustc/bd45872d96b0866775cd99ce94fc4462647e50f3/library/core/src/iter/traits/iterator.rs:643:12 = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `#[warn(clippy::useless_conversion)]` on by default
usage of `Iterator::fold` on a type that implements `Try`: src/builder.rs#L379
warning: usage of `Iterator::fold` on a type that implements `Try` --> src/builder.rs:379:14 | 379 | .fold(Some(ValueSum::zero()), |acc, note_value| acc? + note_value) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(ValueSum::zero(), |acc, note_value| ...)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_try_fold = note: `#[warn(clippy::manual_try_fold)]` on by default
unused import: `H`: src/constants.rs#L6
warning: unused import: `H` --> src/constants.rs:6:91 | 6 | pub use fixed_bases::{NullifierK, OrchardFixedBases, OrchardFixedBasesFull, ValueCommitV, H}; | ^ | = note: `#[warn(unused_imports)]` on by default
unused import: `H`: src/constants.rs#L6
warning: unused import: `H` --> src/constants.rs:6:91 | 6 | pub use fixed_bases::{NullifierK, OrchardFixedBases, OrchardFixedBasesFull, ValueCommitV, H}; | ^ | = note: `#[warn(unused_imports)]` on by default
Performance regression check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/