From 0c9b5179895fee637f15acdc293cce98fcab15e9 Mon Sep 17 00:00:00 2001 From: Brad Richardson Date: Wed, 17 Jul 2024 23:15:27 -0400 Subject: [PATCH] Format --- src/osm_arrow.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/osm_arrow.rs b/src/osm_arrow.rs index 8f2be84..638960e 100644 --- a/src/osm_arrow.rs +++ b/src/osm_arrow.rs @@ -1,17 +1,13 @@ -use std::alloc::LayoutErr; use std::fmt; use std::sync::Arc; use arrow::array::builder::{ - ArrayBuilder, BooleanBuilder, Int64Builder, ListBuilder, MapBuilder, StringBuilder, - StructBuilder, + BooleanBuilder, Int64Builder, ListBuilder, MapBuilder, StringBuilder, StructBuilder, }; -use arrow::array::{make_builder, Array, ArrayRef, Float64Builder, Int32Builder, TimestampMillisecondBuilder}; -use arrow::datatypes::{DataType, TimeUnit, Field, Fields, Schema}; +use arrow::array::{ArrayRef, Float64Builder, Int32Builder, TimestampMillisecondBuilder}; +use arrow::datatypes::{DataType, Field, Fields, Schema, TimeUnit}; use arrow::error::ArrowError; -use arrow::ipc::Utf8Builder; use arrow::record_batch::RecordBatch; -use osmpbf::WayNodeLocationsIter; #[derive(Clone, Debug, Eq, PartialEq, Hash)] pub enum OSMType { @@ -87,7 +83,11 @@ pub fn osm_arrow_schema() -> Schema { true, ), Field::new("changeset", DataType::Int64, true), - Field::new("timestamp", DataType::Timestamp(TimeUnit::Millisecond, None), true), + Field::new( + "timestamp", + DataType::Timestamp(TimeUnit::Millisecond, None), + true, + ), Field::new("uid", DataType::Int32, true), Field::new("user", DataType::Utf8, true), Field::new("version", DataType::Int32, true),