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

use Cow<'a, str> instead of &'a str in activity #38

Closed
wants to merge 1 commit into from

Conversation

ayyEve
Copy link

@ayyEve ayyEve commented Jul 14, 2024

this allows usage of owned values while maintaining the current ability to use borrowed values.
I also replaced the setter fns to use impl Into<Cow<'a, str>>, which accepts &strs, so this change should not be breaking.

…e maintaining ability to use borrowed values
@Bowarc
Copy link
Contributor

Bowarc commented Jul 14, 2024

Related to #22 & #19

@vionya
Copy link
Owner

vionya commented Aug 3, 2024

the current dev implementation of this just has the fns to accept impl ToString which (to my knowledge) should do the trick here

@vionya vionya closed this Aug 3, 2024
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.

3 participants