1
Fork 0

Update for new FnKind::FkMethod signature

This commit is contained in:
Steven Allen 2015-03-22 09:30:04 -07:00
parent 32c087d632
commit 0fd4b6a150

View file

@ -447,8 +447,8 @@ impl<'a> FmtVisitor<'a> {
len += ret_str.len();
// Opening brace if no where clause.
match fk {
visit::FnKind::FkItemFn(_, g, _, _) |
visit::FnKind::FkMethod(_, g, _)
visit::FnKind::FkItemFn(_, &ref g, _, _) |
visit::FnKind::FkMethod(_, &ast::MethodSig { generics: ref g, ..})
if g.where_clause.predicates.len() > 0 => {}
_ => len += 2 // ` {`
}