Bump calamine and fix clippy (#10314)

Upgrade calamine to 0.22
Reduces one potential dependency duplication

Supersedes #10305

Includes fixes for clippy lints as API changed to return owned data.
This commit is contained in:
Stefan Holderbach
2023-09-11 12:39:52 +02:00
committed by GitHub
parent baa50ec9b2
commit eddff46155
4 changed files with 8 additions and 17 deletions

View File

@ -32,7 +32,7 @@ alphanumeric-sort = "1.5"
base64 = "0.21"
byteorder = "1.4"
bytesize = "1.3"
calamine = "0.21"
calamine = "0.22"
chrono = { version = "0.4", features = ["std", "unstable-locales"], default-features = false }
chrono-humanize = "0.2.3"
chrono-tz = "0.8"

View File

@ -128,7 +128,7 @@ fn from_ods(
let mut dict = IndexMap::new();
let mut sheet_names = ods.sheet_names().to_owned();
let mut sheet_names = ods.sheet_names();
if !sel_sheets.is_empty() {
sheet_names.retain(|e| sel_sheets.contains(e));
}

View File

@ -127,7 +127,7 @@ fn from_xlsx(
let mut dict = IndexMap::new();
let mut sheet_names = xlsx.sheet_names().to_owned();
let mut sheet_names = xlsx.sheet_names();
if !sel_sheets.is_empty() {
sheet_names.retain(|e| sel_sheets.contains(e));
}