~tsdh/svgrep

f2be4b321da794b0ea5c7ae62f7e7ae6bb4c38b9 — Tassilo Horn a month ago b34fc2c
Make clippy happy and rename enum variant ALL to All
1 files changed, 4 insertions(+), 4 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +4 -4
@@ 32,7 32,7 @@ pub struct CSVRow {
}

pub enum CellSelect {
    ALL,
    All,
    Some(Vec<usize>),
}



@@ 59,7 59,7 @@ impl MatchExp {
        MatchExp {
            rxs: vec![],
            cell_rxs: HashMap::new(),
            sel: CellSelect::ALL,
            sel: CellSelect::All,
        }
    }



@@ 100,7 100,7 @@ impl CSVRow {

    fn print(&self, cols: &CellSelect, config: &Config) {
        match cols {
            CellSelect::ALL => {
            CellSelect::All => {
                for (i, cell) in self.cells.iter().enumerate() {
                    print!("({}) {} ", i, maybe_trim(cell, config.trim));
                }


@@ 204,7 204,7 @@ fn build_rxs(

fn build_cell_select(s: Option<regex::Match>) -> CellSelect {
    match s {
        None => CellSelect::ALL,
        None => CellSelect::All,
        Some(v) => CellSelect::Some(
            v.as_str()
                .split(',')