Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

wkirschbaum
Copy link
Contributor

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).

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).
@srcrip
Copy link
Owner

srcrip commented Dec 27, 2024

I like it. Thanks!

@srcrip srcrip merged commit c6fa6a2 into srcrip:master Dec 27, 2024
@wkirschbaum wkirschbaum deleted the fix-typespecs-for-put_toast branch December 28, 2024 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants