diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-11 13:55:53 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-13 13:50:43 +0100 |
| commit | 16534af51bc0e9c3db94097ab37ebd3ed50e1c0f (patch) | |
| tree | 0737cf6d26f386c251bc2debcf6bd20272356b32 /rust/qemu-api/src/zeroable.rs | |
| parent | ee7d3aec54a32ce53c9b5ca86c75c945a877db19 (diff) | |
| download | focaccia-qemu-16534af51bc0e9c3db94097ab37ebd3ed50e1c0f.tar.gz focaccia-qemu-16534af51bc0e9c3db94097ab37ebd3ed50e1c0f.zip | |
rust: fix doctests
Doctests were not being run by CI, and have broken. Fix them. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/zeroable.rs')
| -rw-r--r-- | rust/qemu-api/src/zeroable.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/src/zeroable.rs b/rust/qemu-api/src/zeroable.rs index a2356cb2f2..47b6977828 100644 --- a/rust/qemu-api/src/zeroable.rs +++ b/rust/qemu-api/src/zeroable.rs @@ -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() }; /// } /// ``` |