Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
chmp committed Aug 31, 2024
1 parent 1216f45 commit 78b9689
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions serde_arrow/src/internal/schema/tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,7 @@ impl Tracer {
Ok(())
}

pub fn ensure_utf8(
&mut self,
item_type: DataType,
strategy: Option<Strategy>,
) -> Result<()> {
pub fn ensure_utf8(&mut self, item_type: DataType, strategy: Option<Strategy>) -> Result<()> {
self.ensure_primitive_with_strategy(item_type, strategy)
}

Expand Down Expand Up @@ -502,7 +498,10 @@ impl Tracer {
if matches!(item_type, DataType::Null) {
dispatch_tracer!(this, tracer => { tracer.nullable = true });
} else {
fail!("Cannot merge {ty:?} with {item_type:?}", ty = this.get_type());
fail!(
"Cannot merge {ty:?} with {item_type:?}",
ty = this.get_type()
);
}
}
Self::Primitive(tracer) => {
Expand All @@ -527,7 +526,8 @@ fn coerce_primitive_type(
options: &TracingOptions,
) -> Result<(DataType, bool, Option<Strategy>)> {
use DataType::{
Date64, LargeUtf8, Null, Float32, Float64, Int16, Int32, Int64, Int8, UInt16, UInt32, UInt64, UInt8,
Date64, Float32, Float64, Int16, Int32, Int64, Int8, LargeUtf8, Null, UInt16, UInt32,
UInt64, UInt8,
};

let res = match (prev, curr) {
Expand Down

0 comments on commit 78b9689

Please sign in to comment.