Auto merge of #7499 - nerith:style, r=metajack

Improve style nit check for space after a comma

Fixes #7345.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7499)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-09-02 12:05:58 -06:00
commit 3424e234c8
14 changed files with 21 additions and 21 deletions

View file

@ -23,13 +23,13 @@ impl LintPass for BanPass {
}
fn check_ty(&mut self, cx: &Context, ty: &ast::Ty) {
if match_ty_unwrap(ty, &["std","cell","Cell"])
if match_ty_unwrap(ty, &["std", "cell", "Cell"])
.and_then(|t| t.get(0))
.and_then(|t| match_ty_unwrap(&**t, &["dom", "bindings", "js", "JS"]))
.is_some() {
cx.span_lint(BANNED_TYPE, ty.span, "Banned type Cell<JS<T>> detected. Use MutHeap<JS<T>> instead")
}
if match_ty_unwrap(ty, &["std","cell","Cell"])
if match_ty_unwrap(ty, &["std", "cell", "Cell"])
.and_then(|t| t.get(0))
.and_then(|t| match_ty_unwrap(&**t, &["js", "jsval", "JSVal"]))
.is_some() {