Skip to content

Commit 0ad89b4

Browse files
detrumiphansch
andauthored
Implicit return
Co-Authored-By: phansch <dev@phansch.net>
1 parent 1584a98 commit 0ad89b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/adding_lints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ In our example, the implementation would look like:
212212
fn is_foo_fn(fn_kind: FnKind<'_>) -> bool {
213213
match fn_kind {
214214
FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => {
215-
return ident.name == "foo"
215+
ident.name == "foo"
216216
},
217217
FnKind::Closure(..) => false
218218
}

0 commit comments

Comments
 (0)