diff --git a/lang/rust/avro/src/schema.rs b/lang/rust/avro/src/schema.rs index bb914f4a357..0f49a53080d 100644 --- a/lang/rust/avro/src/schema.rs +++ b/lang/rust/avro/src/schema.rs @@ -751,7 +751,6 @@ impl RecordField { "type" | "name" | "doc" | "default" | "order" | "position" => continue, _ => custom_attributes.insert(key.clone(), value.clone()), }; - custom_attributes.insert(key.to_string(), value.clone()); } custom_attributes }