mirror of
https://github.com/openharmony/third_party_rust_env_logger.git
synced 2026-06-30 21:27:58 -04:00
f13c23e88a
Signed-off-by: ljy9810 <longjianyin@h-partners.com>
11 lines
705 B
TOML
11 lines
705 B
TOML
msrv = "1.60.0" # MSRV
|
|
warn-on-all-wildcard-imports = true
|
|
disallowed-methods = [
|
|
{ path = "std::option::Option::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
|
|
{ path = "std::option::Option::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
|
|
{ path = "std::result::Result::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
|
|
{ path = "std::result::Result::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
|
|
{ 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" },
|
|
]
|