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

@@ -187,7 +187,7 @@ fn check_to_owned(cx: &LateContext, expr: &Expr, other_span: Span, left: bool, o
} else {
return
}
},
}
ExprCall(ref path, ref v) if v.len() == 1 => {
if let &ExprPath(None, ref path) = &path.node {
if match_path(path, &["String", "from_str"]) ||
@@ -199,7 +199,7 @@ fn check_to_owned(cx: &LateContext, expr: &Expr, other_span: Span, left: bool, o
} else {
return
}
},
}
_ => return
};
if left {