mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
rust: fix doctests
Doctests were not being run by CI, and have broken. Fix them. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ee7d3aec54
commit
16534af51b
3 changed files with 8 additions and 2 deletions
|
@ -294,7 +294,7 @@ impl VMStateField {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # use qemu_api::vmstate::impl_vmstate_forward;
|
||||
/// # use qemu_api::impl_vmstate_forward;
|
||||
/// pub struct Fifo([u8; 16]);
|
||||
/// impl_vmstate_forward!(Fifo);
|
||||
/// ```
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/// behavior. This trait in principle could be implemented as just:
|
||||
///
|
||||
/// ```
|
||||
/// pub unsafe trait Zeroable {
|
||||
/// pub unsafe trait Zeroable: Default {
|
||||
/// const ZERO: Self = unsafe { ::core::mem::MaybeUninit::<Self>::zeroed().assume_init() };
|
||||
/// }
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue