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: remove unnecesary panic when checking achievement icon size #173

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

LuisMayo
Copy link
Contributor

This PR tries to avoid the library panicking if a achievement doesn't have the proper size by returning None instead

This helps with #172 although I don't think it fully fixes it as a permanent fix should include returning any achievement (possibly in a V2 function returning a more complex struct)

@james7132
Copy link
Collaborator

We should probably use the image crate and return back a properly decoded image with its format, but in the interest of not breaking semver in this PR this looks OK to me.

@james7132 james7132 merged commit 25b12b8 into Noxime:master Apr 20, 2024
9 checks passed
@LuisMayo LuisMayo deleted the fix/icon-size-fix branch April 20, 2024 20:33
@LuisMayo
Copy link
Contributor Author

We should probably use the image crate and return back a properly decoded image with its format, but in the interest of not breaking semver in this PR this looks OK to me.

I think that's actually a good idea

I'm currently developing an app and I want to do other things first but I'll probably come back to it

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.

None yet

2 participants