@@ -51,9 +51,9 @@ std::string StructType::ToString() const {
5151std::span<const SchemaField> StructType::fields () const { return fields_; }
5252Result<std::optional<NestedType::SchemaFieldConstRef>> StructType::GetFieldById (
5353 int32_t field_id) const {
54- ICEBERG_ASSIGN_OR_RAISE (auto * field_by_id, field_by_id_.Get (*this ));
55- auto it = field_by_id-> find (field_id);
56- if (it == field_by_id-> end ()) return std::nullopt ;
54+ ICEBERG_ASSIGN_OR_RAISE (auto field_by_id, field_by_id_.Get (*this ));
55+ auto it = field_by_id. get (). find (field_id);
56+ if (it == field_by_id. get (). end ()) return std::nullopt ;
5757 return it->second ;
5858}
5959Result<std::optional<NestedType::SchemaFieldConstRef>> StructType::GetFieldByIndex (
@@ -66,17 +66,17 @@ Result<std::optional<NestedType::SchemaFieldConstRef>> StructType::GetFieldByInd
6666Result<std::optional<NestedType::SchemaFieldConstRef>> StructType::GetFieldByName (
6767 std::string_view name, bool case_sensitive) const {
6868 if (case_sensitive) {
69- ICEBERG_ASSIGN_OR_RAISE (auto * field_by_name, field_by_name_.Get (*this ));
70- auto it = field_by_name-> find (name);
71- if (it != field_by_name-> end ()) {
69+ ICEBERG_ASSIGN_OR_RAISE (auto field_by_name, field_by_name_.Get (*this ));
70+ auto it = field_by_name. get (). find (name);
71+ if (it != field_by_name. get (). end ()) {
7272 return it->second ;
7373 }
7474 return std::nullopt ;
7575 }
76- ICEBERG_ASSIGN_OR_RAISE (auto * field_by_lowercase_name,
76+ ICEBERG_ASSIGN_OR_RAISE (auto field_by_lowercase_name,
7777 field_by_lowercase_name_.Get (*this ));
78- auto it = field_by_lowercase_name-> find (StringUtils::ToLower (name));
79- if (it != field_by_lowercase_name-> end ()) {
78+ auto it = field_by_lowercase_name. get (). find (StringUtils::ToLower (name));
79+ if (it != field_by_lowercase_name. get (). end ()) {
8080 return it->second ;
8181 }
8282 return std::nullopt ;
0 commit comments