[PATCH 0/1] rust: use checked_div()

John Snow <[email protected]> Wed, 18 Feb 2026 14:24:43 -0500
Newsgroups org.nongnu.qemu-rust,org.nongnu.qemu-devel
Message-ID <[email protected]>
When upgrading from Fedora 41 to Fedora 43 for our CI tests, (Which I do in
https://patchew.org/QEMU/[email protected]/),
clippy begins complaining about not using checked_div instead of
manually checking divisors; see https://gitlab.com/jsnow/qemu/-/jobs/13169193931

This patch aims to make Clippy happy and prevent any regressions caused
by the lcitool refresh.

(Tested only via GitLab CI, and I am not exactly a rust wizard...)

John Snow (1):
  rust: use checked_div to make clippy happy

 rust/hw/core/src/qdev.rs | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

-- 
2.53.0