-
Couldn't load subscription status.
- Fork 1.6k
Closed
Description
Some of core methods using fail! macros. Like expect and unwrap of core::option::Option and core::result::Result.
I found two primary things about this:
Seems like some of fail (panic) methods will be preserved (like expect for a Option<V>). But using of such methods is highly error-prone.
To prevent mass usage of them I suggest to mark such methods as unsafe.
For example:
unsafe fn expect(self, msg: &str) -> T
Or maybe generate some special type of warning on compile.
lucasbasquerotto
Metadata
Metadata
Assignees
Labels
No labels