| commit | 113a7f5bf3b0bea56e8961c63fe7e6abec32f53d | [log] [tgz] |
|---|---|---|
| author | Paolo Bonzini <pbonzini@redhat.com> | Fri Sep 19 13:59:27 2025 +0200 |
| committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Nov 04 17:13:16 2025 +0100 |
| tree | 184501e78ca3fee2183ce2c3714201deb20f9818 | |
| parent | 0830ec94059b239b3f67527b58e52fa7cd4a5439 [diff] |
rust/util: replace Error::err_or_unit/err_or_else with Error::with_errp Introduce a simpler function that hides the creation of the Error**. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>