diff --git a/Cargo.lock b/Cargo.lock index f318965a..5acc8438 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,6 +97,7 @@ dependencies = [ "android-tzdata", "iana-time-zone", "num-traits", + "serde", "winapi", ] diff --git a/Cargo.toml b/Cargo.toml index 07a9dfb5..ca1bc5ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,10 @@ version = "0.26.0" doctest = true [dependencies] -chrono = { version = "0.4.19", default-features = false, features = ["clock"] } +chrono = { version = "0.4.19", default-features = false, features = [ + "clock", + "serde", +] } clipboard = { version = "0.5.0", optional = true } crossbeam = { version = "0.8.2", optional = true } crossterm = { version = "0.27.0", features = ["serde"] } diff --git a/src/history/item.rs b/src/history/item.rs index adc15597..55810567 100644 --- a/src/history/item.rs +++ b/src/history/item.rs @@ -97,6 +97,7 @@ pub struct HistoryItem { /// the exit status of the command pub exit_status: Option, /// arbitrary additional information that might be interesting + #[serde(deserialize_with = "Option::::deserialize")] pub more_info: Option, }