diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-10 09:56:56 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:00:41 +0200 |
commit | b282b859cf3442d922644e2cd2bee68272baafd5 (patch) | |
tree | 0d87712ce7b644321ba1820a8f7fb57ad43382e9 /rust/qemu-api/src | |
parent | 12d1a768bdfea6e27a3a829228840d72507613a1 (diff) | |
download | qemu-b282b859cf3442d922644e2cd2bee68272baafd5.zip qemu-b282b859cf3442d922644e2cd2bee68272baafd5.tar.gz qemu-b282b859cf3442d922644e2cd2bee68272baafd5.tar.bz2 |
qom: Constify TypeInfo::class_data
All callers now correctly expect a const class data.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250424194905.82506-5-philmd@linaro.org>
Diffstat (limited to 'rust/qemu-api/src')
-rw-r--r-- | rust/qemu-api/src/qom.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/src/qom.rs b/rust/qemu-api/src/qom.rs index f385cb7..f0a79f9 100644 --- a/rust/qemu-api/src/qom.rs +++ b/rust/qemu-api/src/qom.rs @@ -513,7 +513,7 @@ pub trait ObjectImpl: ObjectType + IsA<Object> { class_size: core::mem::size_of::<Self::Class>(), class_init: Some(rust_class_init::<Self>), class_base_init: Self::CLASS_BASE_INIT, - class_data: core::ptr::null_mut(), + class_data: core::ptr::null(), interfaces: core::ptr::null_mut(), }; |