From 21b706b62d1660332fc743355937b3683ac7c0b5 Mon Sep 17 00:00:00 2001 From: Renzo <170978465+RenzoMXD@users.noreply.github.com> Date: Thu, 2 Apr 2026 09:05:58 +0200 Subject: [PATCH] fix: swapped argument order in new_inconsistent_union calls (#9001) (#9010) --- rust/flatbuffers/src/verifier.rs | 2 +- rust/reflection/src/reflection_verifier.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/flatbuffers/src/verifier.rs b/rust/flatbuffers/src/verifier.rs index a841bf7c9..e992279d5 100644 --- a/rust/flatbuffers/src/verifier.rs +++ b/rust/flatbuffers/src/verifier.rs @@ -492,8 +492,8 @@ impl<'ver, 'opts, 'buf> TableVerifier<'ver, 'opts, 'buf> { Ok(self) } _ => InvalidFlatbuffer::new_inconsistent_union( - key_field_name.into(), val_field_name.into(), + key_field_name.into(), ), } } diff --git a/rust/reflection/src/reflection_verifier.rs b/rust/reflection/src/reflection_verifier.rs index 524efbd40..be492c762 100644 --- a/rust/reflection/src/reflection_verifier.rs +++ b/rust/reflection/src/reflection_verifier.rs @@ -397,8 +397,8 @@ fn verify_union<'a, 'b, 'c>( } } else { return InvalidFlatbuffer::new_inconsistent_union( - format!("{}_type", field.name()), field.name().to_string(), + format!("{}_type", field.name()), )?; }