mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-27 20:26:48 -06:00
14 lines
615 B
TOML
14 lines
615 B
TOML
allow-unwrap-in-tests = true
|
|
allow-expect-in-tests = true
|
|
allow-panic-in-tests = true
|
|
allow-indexing-slicing-in-tests = true
|
|
|
|
# The web app (wasm32-unknown-unknown) has no clock: these trap (`RuntimeError: unreachable`)
|
|
# instead of returning. Read the clock only off wasm (`cfg(not(target_arch = "wasm32"))` or
|
|
# `cfg!`) and allow the lint at that call.
|
|
disallowed-methods = [
|
|
{ path = "std::time::Instant::now", reason = "traps on wasm; read the clock only off wasm" },
|
|
{ path = "std::time::SystemTime::now", reason = "traps on wasm; read the clock only off wasm" },
|
|
]
|
|
cognitive-complexity-threshold = 30
|