diff --git a/arrow-integration-test/src/field.rs b/arrow-integration-test/src/field.rs index 7bd8576d30c5..32edc4165938 100644 --- a/arrow-integration-test/src/field.rs +++ b/arrow-integration-test/src/field.rs @@ -175,9 +175,11 @@ pub fn field_from_json(json: &serde_json::Value) -> Result { DataType::Struct(map_fields) if map_fields.len() == 2 => { DataType::Map(Arc::new(child), keys_sorted) } - t => return Err(ArrowError::ParseError(format!( + t => { + return Err(ArrowError::ParseError(format!( "Map children should be a struct with 2 fields, found {t:?}" - ))), + ))) + } } } Some(_) => { diff --git a/parquet/src/schema/parser.rs b/parquet/src/schema/parser.rs index 5cba808e06ae..5e213e3bb9e5 100644 --- a/parquet/src/schema/parser.rs +++ b/parquet/src/schema/parser.rs @@ -431,10 +431,12 @@ impl<'a> Parser<'a> { )); } } - _ => return Err(general_err!( + _ => { + return Err(general_err!( "Logical type Integer cannot be used with physical type {}", physical_type - )), + )) + } } if let Some(",") = self.tokenizer.next() { let is_signed = parse_bool(