mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
chore(ci): Ban for_each
This commit is contained in:
parent
afaba35d39
commit
60a8ec89e3
1 changed files with 2 additions and 0 deletions
|
@ -9,4 +9,6 @@ disallowed-methods = [
|
||||||
{ path = "std::option::Option::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
|
{ path = "std::option::Option::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
|
||||||
{ path = "std::result::Result::map_or", reason = "use `map(..).unwrap_or(..)`" },
|
{ path = "std::result::Result::map_or", reason = "use `map(..).unwrap_or(..)`" },
|
||||||
{ path = "std::result::Result::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
|
{ path = "std::result::Result::map_or_else", reason = "use `map(..).unwrap_or_else(..)`" },
|
||||||
|
{ path = "std::iter::Iterator::for_each", reason = "prefer `for` for side-effects" },
|
||||||
|
{ path = "std::iter::Iterator::try_for_each", reason = "prefer `for` for side-effects" },
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue