2 Suggests alternatives for useless applications of `?` in terminating expressions
5 There's no reason to use `?` to short-circuit when execution of the body will end there anyway.
13 fn f(to: TO) -> Option<usize> {
18 magic: Result<usize, bool>,
21 fn g(tr: Result<TR, bool>) -> Result<usize, bool> {
22 tr.and_then(|t| Ok(t.magic?))
32 fn f(to: TO) -> Option<usize> {
37 magic: Result<usize, bool>,
40 fn g(tr: Result<TR, bool>) -> Result<usize, bool> {
41 tr.and_then(|t| t.magic)