Skip to content

Commit

Permalink
chore: make cargo clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyWood committed Oct 20, 2024
1 parent 00e6f96 commit d0b2f5b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,21 +217,16 @@ pub struct Sheet {

/// Row to use as header
/// By default, the first non-empty row is used as header
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Default, Clone, Copy)]
#[non_exhaustive]
pub enum HeaderRow {
/// First non-empty row
#[default]
FirstNonEmptyRow,
/// Index of the header row
Row(u32),
}

impl Default for HeaderRow {
fn default() -> Self {
HeaderRow::FirstNonEmptyRow
}
}

// FIXME `Reader` must only be seek `Seek` for `Xls::xls`. Because of the present API this limits
// the kinds of readers (other) data in formats can be read from.
/// A trait to share spreadsheets reader functions across different `FileType`s
Expand Down

0 comments on commit d0b2f5b

Please sign in to comment.