Skip to content

Commit

Permalink
remove redundant Bytestring declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed May 17, 2023
1 parent 42394be commit 03941fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/cmd/exclude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ use crate::{
config::{Config, Delimiter},
index::Indexed,
select::{SelectColumns, Selection},
util, CliResult,
util, CliResult, util::ByteString
};

type ByteString = Vec<u8>;

#[derive(Deserialize)]
struct Args {
arg_columns1: SelectColumns,
Expand Down
5 changes: 3 additions & 2 deletions src/cmd/fill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ use serde::Deserialize;
use crate::{
config::{Config, Delimiter},
select::{SelectColumns, Selection},
util, CliResult,
util,
util::ByteString,
CliResult,
};

type ByteString = Vec<u8>;
type BoxedWriter = csv::Writer<Box<dyn io::Write + 'static>>;
type BoxedReader = csv::Reader<Box<dyn io::Read + Send + 'static>>;

Expand Down
5 changes: 3 additions & 2 deletions src/cmd/frequency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ use crate::{
config::{Config, Delimiter},
index::Indexed,
select::{SelectColumns, Selection},
util, CliResult,
util,
util::ByteString,
CliResult,
};

#[derive(Clone, Deserialize)]
Expand Down Expand Up @@ -109,7 +111,6 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
Ok(())
}

type ByteString = Vec<u8>;
type Headers = csv::ByteRecord;
type FTable = Frequencies<Vec<u8>>;
type FTables = Vec<Frequencies<Vec<u8>>>;
Expand Down

0 comments on commit 03941fc

Please sign in to comment.