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

mgrigorov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/main by this push:
     new 5ac620f5e AVRO-3609: [Rust] Remove wrong collection of custom 
attributes (#2556)
5ac620f5e is described below

commit 5ac620f5eb72449fa05a11cb8fe53a1cb65e6357
Author: Martin Grigorov <[email protected]>
AuthorDate: Tue Oct 17 11:43:03 2023 +0300

    AVRO-3609: [Rust] Remove wrong collection of custom attributes (#2556)
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
 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
     }

Reply via email to