by wizzwizz4 · 6y ago · 0 comments
fn inner_main() -> Result<(), ()>
should be: fn inner_main() -> Result<!, ()>
since it shouldn't return except in the case of an error. It's important to make the compiler aware of such semantics, so that it can better optimise the program.