Skip to content

Commit 60a8ec8

Browse files
committed
chore(ci): Ban for_each
1 parent afaba35 commit 60a8ec8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.clippy.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ disallowed-methods = [
99
{ path = "std::option::Option::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
1010
{ path = "std::result::Result::map_or", reason = "use `map(..).unwrap_or(..)`" },
1111
{ path = "std::result::Result::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
12+
{ path = "std::iter::Iterator::for_each", reason = "prefer `for` for side-effects" },
13+
{ path = "std::iter::Iterator::try_for_each", reason = "prefer `for` for side-effects" },
1214
]

0 commit comments

Comments
 (0)