These are chat archives for rust-lang/rust
(0..inf).find(|n| *n == 9) // => Some(9)
let nine = (0..).find(|&x| x == 9);
rustup component add rustfmt-previewand it installed rustfmt, now how do I run it on a project. When I run
cargo fmt, it says that the binary cargo-fmt is not installed. This keeps changing! I'm on OSX right now.
.find((== &9))would be good.
rustup self update. I think.
rustup run nightly cargo fmt? That's how I run it anyways