Remove unnecessary parentheses.

This commit is contained in:
Huon Wilson 2014-01-19 19:21:14 +11:00
parent 3901228811
commit 39713b8295
47 changed files with 90 additions and 98 deletions

View file

@ -34,7 +34,7 @@ struct CreatureInfo {
}
fn show_color(cc: color) -> ~str {
match (cc) {
match cc {
Red => {~"red"}
Yellow => {~"yellow"}
Blue => {~"blue"}
@ -51,7 +51,7 @@ fn show_color_list(set: ~[color]) -> ~str {
}
fn show_digit(nn: uint) -> ~str {
match (nn) {
match nn {
0 => {~"zero"}
1 => {~"one"}
2 => {~"two"}

View file

@ -37,7 +37,7 @@ fn start(n_tasks: int, token: int) {
}
fn roundtrip(id: int, n_tasks: int, p: &Port<int>, ch: &Chan<int>) {
while (true) {
loop {
match p.recv() {
1 => {
println!("{}\n", id);

View file

@ -110,7 +110,7 @@ impl Sudoku {
let mut ptr = 0u;
let end = work.len();
while (ptr < end) {
while ptr < end {
let (row, col) = work[ptr];
// is there another color to try?
if self.next_color(row, col, self.grid[row][col] + (1 as u8)) {