On Fri, Oct 31, 2025 at 04:25:36PM +0100, Paolo Bonzini wrote:
> Date: Fri, 31 Oct 2025 16:25:36 +0100
> From: Paolo Bonzini <[email protected]>
> Subject: [PATCH 1/4] rust/util: add ensure macro
> X-Mailer: git-send-email 2.51.1
> 
> The macro is similar to anyhow::ensure but uses QEMU's variation
> on anyhow::Error.  It can be used to easily check a condition
> and format an error message.
> 
> Signed-off-by: Paolo Bonzini <[email protected]>
> ---
>  rust/hw/timer/hpet/src/device.rs | 21 ++++++----
>  rust/hw/timer/hpet/src/fw_cfg.rs |  7 ++--
>  rust/util/src/error.rs           | 71 ++++++++++++++++++++++++++++++++
>  3 files changed, 86 insertions(+), 13 deletions(-)

Good!

Reviewed-by: Zhao Liu <[email protected]>


Reply via email to