Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 11, 2021
1 parent b28ec07 commit f1f32a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions parquet/src/arrow/array_reader.rs
Expand Up @@ -1154,10 +1154,8 @@ impl ArrayReader for StructArrayReader {
let mut def_level_data_buffer = MutableBuffer::new(buffer_size);
def_level_data_buffer.resize(buffer_size, 0);

// Safety: the buffer is always treated as `u16` in the code below
let def_level_data = unsafe {
def_level_data_buffer.typed_data_mut()
};
// Safety: the buffer is always treated as `u16` in the code below
let def_level_data = unsafe { def_level_data_buffer.typed_data_mut() };

def_level_data
.iter_mut()
Expand Down

0 comments on commit f1f32a6

Please sign in to comment.