mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Bump calamine
to 0.24 (#11874)
# Description Update `DataType` to `Data` enum due to breaking change Supersedes #11834 # User-Facing Changes None obvious
This commit is contained in:
committed by
GitHub
parent
671bd08bcd
commit
1b220815b9
@ -32,7 +32,7 @@ alphanumeric-sort = "1.5"
|
||||
base64 = "0.21"
|
||||
byteorder = "1.5"
|
||||
bytesize = "1.3"
|
||||
calamine = "0.23.1"
|
||||
calamine = "0.24.0"
|
||||
chrono = { version = "0.4", features = ["std", "unstable-locales"], default-features = false }
|
||||
chrono-humanize = "0.2.3"
|
||||
chrono-tz = "0.8"
|
||||
|
@ -141,11 +141,11 @@ fn from_ods(
|
||||
.enumerate()
|
||||
.map(|(i, cell)| {
|
||||
let value = match cell {
|
||||
DataType::Empty => Value::nothing(head),
|
||||
DataType::String(s) => Value::string(s, head),
|
||||
DataType::Float(f) => Value::float(*f, head),
|
||||
DataType::Int(i) => Value::int(*i, head),
|
||||
DataType::Bool(b) => Value::bool(*b, head),
|
||||
Data::Empty => Value::nothing(head),
|
||||
Data::String(s) => Value::string(s, head),
|
||||
Data::Float(f) => Value::float(*f, head),
|
||||
Data::Int(i) => Value::int(*i, head),
|
||||
Data::Bool(b) => Value::bool(*b, head),
|
||||
_ => Value::nothing(head),
|
||||
};
|
||||
|
||||
|
@ -140,11 +140,11 @@ fn from_xlsx(
|
||||
.enumerate()
|
||||
.map(|(i, cell)| {
|
||||
let value = match cell {
|
||||
DataType::Empty => Value::nothing(head),
|
||||
DataType::String(s) => Value::string(s, head),
|
||||
DataType::Float(f) => Value::float(*f, head),
|
||||
DataType::Int(i) => Value::int(*i, head),
|
||||
DataType::Bool(b) => Value::bool(*b, head),
|
||||
Data::Empty => Value::nothing(head),
|
||||
Data::String(s) => Value::string(s, head),
|
||||
Data::Float(f) => Value::float(*f, head),
|
||||
Data::Int(i) => Value::int(*i, head),
|
||||
Data::Bool(b) => Value::bool(*b, head),
|
||||
_ => Value::nothing(head),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user