Update to the rustfmt in rust 1.31, which is now stable.

This commit is contained in:
Dan Gohman
2018-12-06 16:15:48 -05:00
parent 323a9925e5
commit 5adab629f2
43 changed files with 181 additions and 177 deletions

View File

@@ -114,7 +114,8 @@ impl Formatter {
} else {
format!("/// {}", l)
}
}).for_each(|s| self.line(s.as_str()));
})
.for_each(|s| self.line(s.as_str()));
}
/// Add a match expression.
@@ -131,7 +132,8 @@ impl Formatter {
} else {
name.clone()
}
}).collect();
})
.collect();
let lhs = conditions.join(" | ");
fmt.line(&format!("{} => {{", lhs));
fmt.indent(|fmt| {