Remove trailing commas in match arms with blocks

This commit is contained in:
Seo Sanghyeon
2015-11-17 13:39:42 +09:00
parent 1555eed5fb
commit b17e38782e
16 changed files with 53 additions and 53 deletions

View File

@@ -32,14 +32,14 @@ impl LateLintPass for UnnecessaryMutPassed {
check_arguments(cx, &arguments, function_type,
&format!("{}", path));
}
},
}
None => unreachable!(), // A function with unknown type is called.
// If this happened the compiler would have aborted the
// compilation long ago.
};
},
}
ExprMethodCall(ref name, _, ref arguments) => {
let method_call = MethodCall::expr(e.id);
match borrowed_table.method_map.get(&method_call) {
@@ -47,7 +47,7 @@ impl LateLintPass for UnnecessaryMutPassed {
&format!("{}", name.node.as_str())),
None => unreachable!(), // Just like above, this should never happen.
};
},
}
_ => {}
}
}
@@ -66,7 +66,7 @@ fn check_arguments(cx: &LateContext, arguments: &[P<Expr>], type_definition: &Ty
doesn't need a mutable reference",
name));
}
},
}
_ => {}
}
}