mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
This commit is contained in:
@@ -492,8 +492,8 @@ impl<'ver, 'opts, 'buf> TableVerifier<'ver, 'opts, 'buf> {
|
|||||||
Ok(self)
|
Ok(self)
|
||||||
}
|
}
|
||||||
_ => InvalidFlatbuffer::new_inconsistent_union(
|
_ => InvalidFlatbuffer::new_inconsistent_union(
|
||||||
key_field_name.into(),
|
|
||||||
val_field_name.into(),
|
val_field_name.into(),
|
||||||
|
key_field_name.into(),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -397,8 +397,8 @@ fn verify_union<'a, 'b, 'c>(
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return InvalidFlatbuffer::new_inconsistent_union(
|
return InvalidFlatbuffer::new_inconsistent_union(
|
||||||
format!("{}_type", field.name()),
|
|
||||||
field.name().to_string(),
|
field.name().to_string(),
|
||||||
|
format!("{}_type", field.name()),
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user