(optional: Option<T>, err_msg: &'static str)
| 9707 | } |
| 9708 | |
| 9709 | fn expect_unchecked<T: fmt::Debug>(optional: Option<T>, err_msg: &'static str) -> T { |
| 9710 | if cfg!(debug_assertions) { |
| 9711 | optional.expect(err_msg) |
| 9712 | } else { |
| 9713 | unsafe { optional.unwrap_unchecked() } |
| 9714 | } |
| 9715 | } |
no outgoing calls
no test coverage detected