Skip to content

Commit

Permalink
Prevent instant::SystemTime in clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed May 11, 2023
1 parent 3bbb94c commit 96c035a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/clippy_wasm/clippy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ disallowed-methods = [

# https://rust-lang.github.io/rust-clippy/master/index.html#disallowed_types
disallowed-types = [
# Cannot spawn threads on wasm:
"std::thread::Builder",
{ path = "std::thread::Builder", reason = "Cannot spawn threads on wasm" },
{ path = "instant::SystemTime", reason = "Known bugs. Use web-time." },
]

# Allow-list of words for markdown in dosctrings https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
Expand Down

0 comments on commit 96c035a

Please sign in to comment.