From d0b2f5b50cf3476cee4ca3861c0c5321db44d0a2 Mon Sep 17 00:00:00 2001 From: Eric Jolibois Date: Sun, 20 Oct 2024 16:51:53 +0200 Subject: [PATCH] chore: make cargo clippy happy --- src/lib.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4ec74eb..9a0e527 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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