Implicit return

Co-Authored-By: phansch <dev@phansch.net>
This commit is contained in:
Wilco Kusee 2019-02-27 22:15:19 +01:00 committed by Philipp Hansch
parent 12b2696634
commit c83b0298d7
No known key found for this signature in database
GPG Key ID: B6FA06A6E0E2665B

View File

@ -214,7 +214,7 @@ fn is_foo_fn(fn_kind: FnKind<'_>) -> bool {
FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => {
return ident.name == "foo"
},
FnKind::Closure(..) => return false
FnKind::Closure(..) => false
}
}
```