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

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