Fix reported test-tidy errors

This fixes lines that were reported to have missing
space after a comma.
This commit is contained in:
Brandon Fairchild 2015-09-01 16:30:42 -04:00
parent 24bc6dfb52
commit d61a6e2161
13 changed files with 19 additions and 19 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() {