fix: swapped argument order in new_inconsistent_union calls (#9001) (#9010)

This commit is contained in:
Renzo
2026-04-02 09:05:58 +02:00
committed by GitHub
parent c5f151ab33
commit 21b706b62d
2 changed files with 2 additions and 2 deletions

View File

@@ -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(),
),
}
}

View File

@@ -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()),
)?;
}