Crossposting my comment from the blog:
The Rust example looks a bit strange, since you're matching on a variable, but don't actually use it.
Instead, you could write the match like this:
let div_by_three = x % 3 == 0;
let div_by_five = x % 5 == 0;
match (div_by_three, div_by_five) {
(true, true) => println!("FizzBuzz"),
(true, false) => println!("Fizz"),
(false, true) => println!("Buzz"),
_ => println!("{}", x),
}
...or even like this: match (x % 3, x % 5) {
(0, 0) => println!("FizzBuzz"),
(0, _) => println!("Fizz"),
(_, 0) => println!("Buzz"),
_ => println!("{}", x),
}
Furthermore, inclusive ranges can be written like this: for x in 1..=100 {