Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Apr 23, 2024
1 parent 7aa706a commit cde4538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub fn to_string_or_none<T: ToString>(value: Option<T>) -> String {
pub fn option_to_string<T: ToString>(value: Option<T>) -> String {
value.map_or_else(|| "none".to_string(), |val| val.to_string())
}

0 comments on commit cde4538

Please sign in to comment.