Skip to content

Commit

Permalink
rename as per clippy specifications
Browse files Browse the repository at this point in the history
upper_case_acronyms
  • Loading branch information
andrewgazelka committed Sep 28, 2024
1 parent 409ca48 commit 445bfce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 72 deletions.
66 changes: 0 additions & 66 deletions src/daft-csv/src/compression.rs

This file was deleted.

12 changes: 6 additions & 6 deletions src/daft-csv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ pub use read::{read_csv, read_csv_bulk, stream_csv};
#[derive(Debug, Snafu)]
pub enum Error {
#[snafu(display("{source}"))]
IOError { source: daft_io::Error },
IoError { source: daft_io::Error },
#[snafu(display("{source}"))]
StdIOError { source: std::io::Error },
StdIoError { source: std::io::Error },
#[snafu(display("{source}"))]
CSVError { source: csv_async::Error },
CsvError { source: csv_async::Error },
#[snafu(display("Invalid char: {}", val))]
WrongChar {
source: std::char::TryFromCharError,
Expand All @@ -50,20 +50,20 @@ pub enum Error {
impl From<Error> for DaftError {
fn from(err: Error) -> DaftError {
match err {
Error::IOError { source } => source.into(),
Error::IoError { source } => source.into(),
_ => DaftError::External(err.into()),
}
}
}

impl From<daft_io::Error> for Error {
fn from(err: daft_io::Error) -> Self {
Error::IOError { source: err }
Error::IoError { source: err }
}
}

#[cfg(feature = "python")]
impl From<Error> for pyo3::PyErr {
impl From<Error> for PyErr {
fn from(value: Error) -> Self {
let daft_error: DaftError = value.into();
daft_error.into()
Expand Down

0 comments on commit 445bfce

Please sign in to comment.