Skip to content

Commit

Permalink
[rust] Derive Eq + PartialEq on FieldLoc and FlatBufferBuilder (googl…
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-airoldie authored and rw committed Jun 6, 2019
1 parent b59a1ca commit 16aef8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/flatbuffers/src/builder.rs
Expand Up @@ -31,7 +31,7 @@ use vector::{SafeSliceAccess, Vector};

pub const N_SMALLVEC_STRING_VECTOR_CAPACITY: usize = 16;

#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
struct FieldLoc {
off: UOffsetT,
id: VOffsetT,
Expand All @@ -40,7 +40,7 @@ struct FieldLoc {
/// FlatBufferBuilder builds a FlatBuffer through manipulating its internal
/// state. It has an owned `Vec<u8>` that grows as needed (up to the hardcoded
/// limit of 2GiB, which is set by the FlatBuffers format).
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct FlatBufferBuilder<'fbb> {
owned_buf: Vec<u8>,
head: usize,
Expand Down

0 comments on commit 16aef8a

Please sign in to comment.