Files
rust/tests/ui
Samuel Tardieu 4eac58a0b0 Consider type conversion that won't overflow (#15950)
Fix rust-lang/rust-clippy#15943

```rust
pub fn from_days(days: u8) -> Duration {
    Duration::from_secs(86400 * u64::from(days))
}
```

An initial foundation that can be used for future improvements. It is
been a while since I touched Clippy so feel free to indicate better
designs if applicable.

Looks like https://github.com/rust-lang/rust-clippy/pull/15342 will help
but it is unclear when it will be finished. This PR provides a partial
solution for the current time.

changelog: [`arithmetic_side_effects`]: Consider type conversion that
won't overflow
2025-11-05 08:07:35 +00:00
..
2025-10-27 21:19:38 -05:00
2025-02-15 13:38:42 +01:00
2025-10-31 22:20:53 +01:00
2025-10-31 22:20:53 +01:00
2025-10-31 22:20:53 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-10-21 14:17:20 +02:00
2025-10-21 14:17:20 +02:00
2025-10-21 14:17:20 +02:00
2025-02-15 13:38:42 +01:00
2025-06-18 10:20:46 +02:00
2025-10-29 08:06:58 +08:00
2025-10-29 08:06:58 +08:00
2025-02-15 13:38:43 +01:00
2025-10-11 20:50:21 +00:00
2025-10-11 20:50:21 +00:00
2025-10-17 19:32:48 +02:00
2025-10-12 13:54:47 +02:00
2025-07-13 13:50:01 +00:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-10-17 19:32:48 +02:00
2025-10-17 19:32:48 +02:00
2025-02-15 13:38:42 +01:00
2025-07-13 13:50:01 +00:00
2025-06-11 15:30:15 +01:00
2025-06-11 15:30:15 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00
2025-02-15 13:38:42 +01:00