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

Simplify API #24

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Simplify API #24

merged 3 commits into from
Oct 28, 2024

Conversation

nazar-pc
Copy link
Contributor

This is a follow-up to #19, which while works, has slightly annoying API, which could be improved.

I also improved formatting and docs in generated file and resolved potential conflict with multiple resources.gresource files.

Copy link
Member

@AaronErhardt AaronErhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good overall. I'd be nice though to remove generics even further where they don't make any sense.

@@ -48,11 +51,12 @@ pub fn bundle_icons<P, I, S>(
S: Into<Cow<'static, str>> + Display + Clone,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice in the other PR, but P: AsRef<Path> + Display doesn't make sense. You could write &str and it would be effectively the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it look better now?

Copy link
Member

@AaronErhardt AaronErhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks!

@AaronErhardt AaronErhardt merged commit 74dc5af into Relm4:main Oct 28, 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.

2 participants