0xPolygonZero / plonky2

Apache License 2.0
758 stars 281 forks source link

Pacify latest clippy #1442

Closed Nashtare closed 8 months ago

Nashtare commented 8 months ago

Latest clippy is complaining wrongly about unconditional recursion.

error: function cannot return without recursing
  --> evm/src/cpu/columns/general.rs:79:5
   |
79 | /     fn eq(&self, other: &Self) -> bool {
80 | |         let self_arr: &[T; NUM_SHARED_COLUMNS] = self.borrow();
81 | |         let other_arr: &[T; NUM_SHARED_COLUMNS] = other.borrow();
82 | |         self_arr == other_arr
83 | |     }
   | |_____^
   |
note: recursive call site
  --> evm/src/cpu/columns/general.rs:82:9
   |
82 |         self_arr == other_arr
   |         ^^^^^^^^^^^^^^^^^^^^^
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unconditional_recursion
   = note: `-D clippy::unconditional-recursion` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::unconditional_recursion)]`
sonarcloud[bot] commented 8 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud