Skip to content

Check num of commitments against min signers #1082

Check num of commitments against min signers

Check num of commitments against min signers #1082

GitHub Actions / Clippy (stable) Results failed Jan 16, 2024 in 0s

Clippy (stable) Results

4 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 4
Warning 0
Note 0
Help 0

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check failure on line 509 in frost-core/src/keys/dkg.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

can't compare `usize` with `u16`

error[E0277]: can't compare `usize` with `u16`
   --> frost-core/src/keys/dkg.rs:509:44
    |
509 |         if secret_share.commitment.0.len() != round2_secret_package.min_signers {
    |                                            ^^ no implementation for `usize == u16`
    |
    = help: the trait `std::cmp::PartialEq<u16>` is not implemented for `usize`
    = help: the following other types implement trait `std::cmp::PartialEq<Rhs>`:
              <usize as std::cmp::PartialEq>
              <usize as std::cmp::PartialEq<serde_json::Value>>

Check failure on line 509 in frost-core/src/keys/dkg.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

mismatched types

error[E0308]: mismatched types
   --> frost-core/src/keys/dkg.rs:509:47
    |
509 |         if secret_share.commitment.0.len() != round2_secret_package.min_signers {
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u16`

Check failure on line 509 in frost-core/src/keys/dkg.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

can't compare `usize` with `u16`

error[E0277]: can't compare `usize` with `u16`
   --> frost-core/src/keys/dkg.rs:509:44
    |
509 |         if secret_share.commitment.0.len() != round2_secret_package.min_signers {
    |                                            ^^ no implementation for `usize == u16`
    |
    = help: the trait `std::cmp::PartialEq<u16>` is not implemented for `usize`
    = help: the following other types implement trait `std::cmp::PartialEq<Rhs>`:
              <usize as std::cmp::PartialEq>
              <usize as std::cmp::PartialEq<serde_json::Value>>

Check failure on line 509 in frost-core/src/keys/dkg.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

mismatched types

error[E0308]: mismatched types
   --> frost-core/src/keys/dkg.rs:509:47
    |
509 |         if secret_share.commitment.0.len() != round2_secret_package.min_signers {
    |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u16`