]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: hpet: fix new warning
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Jun 2025 16:56:49 +0000 (18:56 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 17 Sep 2025 16:43:05 +0000 (19:43 +0300)
commit2fbab04cbddc1f6cdb79b5231d7e2df2ab8de8bf
tree6de1f50573a9350b85ea70933d2dcf99fb4934f6
parent6cd9548f1f2355aeb9613a962d44834c70e79095
rust: hpet: fix new warning

Nightly rustc complains that HPETAddrDecode has a lifetime but it is not
clearly noted that it comes from &self.  Apply the compiler's suggestion
to shut it up.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 6b3fad084fc4e13901e252fe6c2a2c46ecea999b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
rust/hw/timer/hpet/src/hpet.rs