Skip to content

Commit

Permalink
Fix: deserialization bound on generic type parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Dec 6, 2023
1 parent 990a7e5 commit 5f4a191
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
1 change: 1 addition & 0 deletions src/history/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ pub struct HistoryItem<ExtraInfo: HistoryItemExtraInfo = IgnoreAllExtraInfo> {
/// the exit status of the command
pub exit_status: Option<i64>,
/// arbitrary additional information that might be interesting
#[serde(deserialize_with = "Option::<ExtraInfo>::deserialize")]
pub more_info: Option<ExtraInfo>,
}

Expand Down

0 comments on commit 5f4a191

Please sign in to comment.