Repository navigation
refactor: remove panics from manifest - #456
Merged
Merged
Conversation
panics in library code is a bad practice, if we can - we should prefer value err instead. there is a plenty of panics, so i remove 2 of them (which is more natural as err values). for the rest of code - better to fix it adhoc (1by1)
laskoviymishka
marked this pull request as ready for review
June 8, 2025 16:33
Member
|
So the primary reason for those being panics was because it was so unlikely that anything would actually hit those conditions. That said, I'm not opposed to this change |
Contributor
Author
|
Yes, adding assert-style panic is IMHO - OK, but we need to use this with caution, I would like to move a needle here a bit, I'll try to eliminate panics which are not impossible, and the one that is impossible made them more direct in intention (maybe wrap into some helper or so). |
Member
|
Looks like there's just some lint stuff to fix here |
Contributor
Author
well, at some point i'll setup linters locally :D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
panics in library code is a bad practice, if we can - we should prefer value err instead.
there is a plenty of panics, so i remove 2 of them (which is more natural as err values).
for the rest of code - better to fix it adhoc (1by1)