diff --git a/types/src/types.rs b/types/src/types.rs index 65a068b..1092cc1 100644 --- a/types/src/types.rs +++ b/types/src/types.rs @@ -250,8 +250,9 @@ impl From> for FieldArray { impl FieldTable { /// Insert a new entry in the table - pub fn insert(&mut self, k: ShortString, v: AMQPValue) { + pub fn insert(&mut self, k: ShortString, v: AMQPValue) -> &mut Self { self.0.insert(k, v); + self } /// Check whether the table contains the given key