Skip to content
This repository was archived by the owner on Aug 29, 2020. It is now read-only.

Provide fallback value for unwrap where appropriate#104

Open
CosmicHorrorDev wants to merge 1 commit intocjbassi:masterfrom
CosmicHorrorDev:avoid-unwrap
Open

Provide fallback value for unwrap where appropriate#104
CosmicHorrorDev wants to merge 1 commit intocjbassi:masterfrom
CosmicHorrorDev:avoid-unwrap

Conversation

@CosmicHorrorDev
Copy link

Addresses: #80

This PR just tries to reduce down the number of unwraps used. In general, unwrap should be avoided over traditional error handling and mitigating with unwrap_or, unwrap_or_default, expect, etc. since it introduces possible ways to crash the program.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant