public inbox for qemu-rust@nongnu.org
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: qemu-devel@nongnu.org
Cc: qemu-rust@nongnu.org,
	Manos Pitsidianakis <manos.pitsidianakis@linaro.org>,
	John Snow <jsnow@redhat.com>
Subject: [PATCH 0/1] rust: use checked_div()
Date: Wed, 18 Feb 2026 14:24:43 -0500	[thread overview]
Message-ID: <20260218192444.658046-1-jsnow@redhat.com> (raw)

When upgrading from Fedora 41 to Fedora 43 for our CI tests, (Which I do in
https://patchew.org/QEMU/20260216212952.420120-1-jsnow@redhat.com/),
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




             reply	other threads:[~2026-02-18 19:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-18 19:24 John Snow [this message]
2026-02-18 19:24 ` [PATCH 1/1] rust: use checked_div to make clippy happy John Snow
2026-02-18 22:18   ` Manos Pitsidianakis
2026-02-19  3:38   ` Richard Henderson
2026-02-19 17:05     ` John Snow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260218192444.658046-1-jsnow@redhat.com \
    --to=jsnow@redhat.com \
    --cc=manos.pitsidianakis@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-rust@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox