qemu-cr16/rust/util
Paolo Bonzini 0830ec9405 rust/util: use anyhow's native chaining capabilities
This simplifies conversions, making it possible to convert any error
into a QEMU util::Error with ".into()" (and therefore with "?").

The cost is having a separate constructor for when the error is a simple
string, but that is made easier by the ensure! macro.  If necessary,
another macro similar to "anyhow!" can be returned, but for now there
is no need for that.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2025-11-04 17:13:11 +01:00
..
src rust/util: use anyhow's native chaining capabilities 2025-11-04 17:13:11 +01:00
build.rs
Cargo.toml rust: use glib-sys 2025-10-03 15:14:48 +02:00
meson.build rust: use glib-sys 2025-10-03 15:14:48 +02:00
wrapper.h