You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2023/10/17 06:45:24 UTC

[avro] 01/01: AVRO-3609: [Rust] Remove wrong collection of custom attributes

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch avro-3886-do-not-write-custom-attrs-twice
in repository https://gitbox.apache.org/repos/asf/avro.git

commit 09aa9568650463fe7a1448c1fa8ff7574c31adb3
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Tue Oct 17 09:44:11 2023 +0300

    AVRO-3609: [Rust] Remove wrong collection of custom attributes
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
 lang/rust/avro/src/schema.rs | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lang/rust/avro/src/schema.rs b/lang/rust/avro/src/schema.rs
index bb914f4a3..0f49a5308 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
     }