Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 committed Dec 13, 2023
1 parent e26cc3c commit 5c887f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/daft-core/src/array/ops/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,6 @@ fn extract_python_like_to_fixed_size_list<
child_dtype: &DataType,
list_size: usize,
) -> DaftResult<FixedSizeListArray> {
use std::sync::Arc;

let (values_vec, _, _, _) =
extract_python_to_vec::<Tgt>(py, python_objects, child_dtype, None, Some(list_size), None)?;

Expand Down Expand Up @@ -754,8 +752,6 @@ fn extract_python_like_to_list<
python_objects: &PythonArray,
child_dtype: &DataType,
) -> DaftResult<ListArray> {
use std::sync::Arc;

let (values_vec, offsets, _, _) =
extract_python_to_vec::<Tgt>(py, python_objects, child_dtype, None, None, None)?;

Expand Down Expand Up @@ -889,8 +885,6 @@ fn extract_python_like_to_tensor_array<
dtype: &DataType,
child_dtype: &DataType,
) -> DaftResult<TensorArray> {
use std::sync::Arc;

let (data, offsets, shapes, shape_offsets) = extract_python_to_vec::<Tgt>(
py,
python_objects,
Expand Down
2 changes: 1 addition & 1 deletion src/daft-csv/src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ use tokio::{
};
use tokio_util::io::StreamReader;

use crate::ArrowSnafu;
use crate::{metadata::read_csv_schema_single, CsvConvertOptions, CsvParseOptions, CsvReadOptions};
use crate::{schema, ArrowSnafu};
use daft_compression::CompressionCodec;
use daft_decoding::deserialize::deserialize_column;

Expand Down
2 changes: 1 addition & 1 deletion src/daft-table/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl Table {
pub fn new_unchecked<S: Into<SchemaRef>>(schema: S, columns: Vec<Series>) -> Self {
Table {
schema: schema.into(),
columns: columns,
columns,
}
}

Expand Down

0 comments on commit 5c887f2

Please sign in to comment.