Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions src/uu/dd/src/datastructures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
// file that was distributed with this source code.
// spell-checker:ignore ctable, outfile, iseek, oseek

use std::error::Error;

use uucore::error::UError;

use crate::conversion_tables::*;

type Cbs = usize;
Expand Down Expand Up @@ -102,21 +98,6 @@ pub enum CountType {
Bytes(u64),
}

#[derive(Debug)]
pub enum InternalError {
WrongInputType,
WrongOutputType,
}

impl std::fmt::Display for InternalError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Internal dd error: Wrong Input/Output data type")
}
}

impl Error for InternalError {}
impl UError for InternalError {}

pub mod options {
pub const INFILE: &str = "if";
pub const OUTFILE: &str = "of";
Expand Down
Loading