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

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


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

commit fb544f6035890d0bfcd22571de9fff6e08c9f3f0
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]>
    (cherry picked from commit 5ac620f5eb72449fa05a11cb8fe53a1cb65e6357)
---
 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 7c51140aa..f28e1be3d 100644
--- a/lang/rust/avro/src/schema.rs
+++ b/lang/rust/avro/src/schema.rs
@@ -747,7 +747,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