srcrip / live_toast

A beautiful drop-in replacement for the Phoenix Flash system.
https://toast.src.rip
MIT License
193 stars 17 forks source link

fix: use String.Chars.t() instead of binary() for put_toast message #26

Open wkirschbaum opened 1 week ago

wkirschbaum commented 1 week ago

The message does not have to be a binary, but needs to implement String.Chars for it to be rendered. This allows structs to be used like ErrorMessage without having to call to_string(error).