Add `#[serde(default)]` to `ReportFunction::address` (#43)

This commit is contained in:
Robin Avery 2024-02-29 13:21:30 -05:00 committed by GitHub
parent 5b9ac93c08
commit 5cfd04fd4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ struct ReportFunction {
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
demangled_name: Option<String>, demangled_name: Option<String>,
#[serde( #[serde(
default,
skip_serializing_if = "Option::is_none", skip_serializing_if = "Option::is_none",
serialize_with = "serialize_hex", serialize_with = "serialize_hex",
deserialize_with = "deserialize_hex" deserialize_with = "deserialize_hex"