liurenjie1024 commented on code in PR #25:
URL: https://github.com/apache/iceberg-rust/pull/25#discussion_r1288057476


##########
crates/iceberg/src/spec/datatypes.rs:
##########
@@ -438,13 +461,15 @@ impl fmt::Display for NestedField {
 /// Elements can be either optional or required. Element types may be any type.
 pub struct ListType {
     /// Element field of list type.
-    pub element_field: NestedField,
+    pub element_field: NestedFieldRef,
 }
 
 /// Module for type serialization/deserialization.
 pub(super) mod _serde {
     use crate::spec::datatypes::Type::Map;
-    use crate::spec::datatypes::{ListType, MapType, NestedField, 
PrimitiveType, StructType, Type};
+    use crate::spec::datatypes::{
+        ListType, MapType, NestedField, NestedFieldRef, PrimitiveType, 
StructType, Type,

Review Comment:
   It seems that this is the default behavior of `rustfmt`. We can fix it using 
an option: 
https://rust-lang.github.io/rustfmt/?version=v1.6.0&search=trailing_comma#trailing_comma
  but it's currenlty in unstable rust, so I would prefer to leave  it as now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to