diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-07 10:30:41 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-23 11:50:53 +0100 |
commit | 24f0e8d818b931758b6dc47f973a6b1b80ecee1f (patch) | |
tree | 471ea7065c353dd6c0a477a6b920d59227620941 /rust/qemu-api/src/vmstate.rs | |
parent | 9d4899496b555751c8ea4155d6da4fc3dbd7edae (diff) | |
download | qemu-24f0e8d818b931758b6dc47f973a6b1b80ecee1f.zip qemu-24f0e8d818b931758b6dc47f973a6b1b80ecee1f.tar.gz qemu-24f0e8d818b931758b6dc47f973a6b1b80ecee1f.tar.bz2 |
rust: vmstate: make order of parameters consistent in vmstate_clock
Place struct_name before field_name, similar to offset_of.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/src/vmstate.rs')
-rw-r--r-- | rust/qemu-api/src/vmstate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/src/vmstate.rs b/rust/qemu-api/src/vmstate.rs index 120933e..6ac432c 100644 --- a/rust/qemu-api/src/vmstate.rs +++ b/rust/qemu-api/src/vmstate.rs @@ -457,7 +457,7 @@ macro_rules! vmstate_struct { #[doc(alias = "VMSTATE_CLOCK")] #[macro_export] macro_rules! vmstate_clock { - ($field_name:ident, $struct_name:ty) => {{ + ($struct_name:ty, $field_name:ident) => {{ $crate::bindings::VMStateField { name: ::core::concat!(::core::stringify!($field_name), "\0") .as_bytes() |