Align jq microcap execution with intraday snapshots
This commit is contained in:
@@ -1280,7 +1280,11 @@ mod optional_date_format {
|
||||
D: Deserializer<'de>,
|
||||
{
|
||||
let text = Option::<String>::deserialize(deserializer)?;
|
||||
match text.as_deref().map(str::trim).filter(|value| !value.is_empty()) {
|
||||
match text
|
||||
.as_deref()
|
||||
.map(str::trim)
|
||||
.filter(|value| !value.is_empty())
|
||||
{
|
||||
Some(text) => NaiveDate::parse_from_str(text, FORMAT)
|
||||
.map(Some)
|
||||
.map_err(serde::de::Error::custom),
|
||||
|
||||
Reference in New Issue
Block a user