Skip to content

Commit

Permalink
Fix rustfmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
manh9203 committed Mar 28, 2024
1 parent 73951bf commit d724d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions tools/rust_api/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ pub(crate) mod ffi {
fn getLogicalTypeID(&self) -> LogicalTypeID;

fn create_logical_type(id: LogicalTypeID) -> UniquePtr<LogicalType>;
fn create_logical_type_list(
child_type: UniquePtr<LogicalType>,
) -> UniquePtr<LogicalType>;
fn create_logical_type_list(child_type: UniquePtr<LogicalType>) -> UniquePtr<LogicalType>;
fn create_logical_type_array(
child_type: UniquePtr<LogicalType>,
num_elements: u64,
Expand Down
4 changes: 1 addition & 3 deletions tools/rust_api/src/logical_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ impl From<&ffi::LogicalType> for LogicalType {
LogicalTypeID::TIMESTAMP_SEC => LogicalType::TimestampSec,
LogicalTypeID::INTERNAL_ID => LogicalType::InternalID,
LogicalTypeID::LIST => LogicalType::List {
child_type: Box::new(
ffi::logical_type_get_list_child_type(logical_type).into(),
),
child_type: Box::new(ffi::logical_type_get_list_child_type(logical_type).into()),
},
LogicalTypeID::ARRAY => LogicalType::Array {
child_type: Box::new(ffi::logical_type_get_array_child_type(logical_type).into()),
Expand Down

0 comments on commit d724d16

Please sign in to comment.