3 ms·Rust has "if is an expression" already anyway, so no ternary. let x = if true { 5 } else { 6 };by steveklabnik 9y agoRust has "if is an expression" already anyway, so no ternary. let x = if true { 5 } else { 6 };