Silence clippy lint arc_with_non_send_sync on wasm

This commit is contained in:
Jonas Platte
2023-08-25 13:27:08 +02:00
committed by Jonas Platte
parent e02aa6b132
commit aed9b20195

View File

@@ -35,6 +35,14 @@ rustflags = [
"-Wclippy::todo",
]
[target.'cfg(target_arch = "wasm32")']
rustflags = [
# We have some types that are !Send and/or !Sync only on wasm, it would be
# slightly more efficient, but also pretty annoying, to wrap them in Rc
# where we would use Arc on other platforms.
"-Aclippy::arc_with_non_send_sync",
]
# activate the target-applies-to-host feature.
# Required for `target-applies-to-host` at the top to take effect.
[unstable]