mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 10:23:32 +00:00
![]() I get the following clippy errors in the energy monitor: error: equal expressions as operands to `-` --> C:\src\slint\target\debug\build\energy-monitor-7b0492feb1633656\out\desktop_window.rs:47254:94 | 47254 | ... (slint :: private_unstable_api :: re_exports :: LogicalLength :: new (((((0f64 as f64) - (0f64 as f64)) as f64) * (((1f64 as f64) *... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op error: equal expressions as operands to `==` --> C:\src\slint\target\debug\build\energy-monitor-7b0492feb1633656\out\desktop_window.rs:45382:18 | 45382 | (((0f64 as f64) == (0f64 as f64))) as bool } | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op I am not surprised that the generated code sometimes produces code like this (even though the other demos do not!), so I went ahead and silenced these errors. |
||
---|---|---|
.. | ||
cpp.rs | ||
rust.rs |