Skip to content

Commit 1584a98

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

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
@@ -214,7 +214,7 @@ fn is_foo_fn(fn_kind: FnKind<'_>) -> bool {
214214
FnKind::ItemFn(ident, ..) | FnKind::Method(ident, ..) => {
215215
return ident.name == "foo"
216216
},
217-
FnKind::Closure(..) => return false
217+
FnKind::Closure(..) => false
218218
}
219219
}
220220
```

0 commit comments

Comments
 (0)