3 ms·
Even in a library there are valid use cases for an unwrap. If you can literally guarantee that the value is present it's fine. In libraries one should be wary
by staticassertion 10y ago
Even in a library there are valid use cases for an unwrap. If you can literally guarantee that the value is present it's fine.
In libraries one should be wary about it, and never use it if the unwrap might actually panic, but otherwise you're good to go.