diff --git a/src/events/helpers.rs b/src/events/helpers.rs index 50fd982..df8216a 100644 --- a/src/events/helpers.rs +++ b/src/events/helpers.rs @@ -1,3 +1,3 @@ -pub fn to_string_or_none(value: Option) -> String { +pub fn option_to_string(value: Option) -> String { value.map_or_else(|| "none".to_string(), |val| val.to_string()) }