forked from BigfootDev/flatbuffers
This commit is contained in:
@@ -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(),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()),
|
||||
)?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user