In functions returning Result or Option from a match, you can avoid repeating Ok() all the time by moving it an outer scope.Instead of:match foo { Bar => Ok(1) Baz => Ok(2) Quz => Ok(3) _ => Err("etc"), } you can write:Ok(match foo { Bar => 1, Baz => 2, Quz => 3, _ => return Err("etc"), }) ⏴ ⏵