bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
15.46k stars 1.31k forks source link

Enable some Clippy conversion lints for `wasmtime-cranelift` #9536

Closed alexcrichton closed 4 weeks ago

alexcrichton commented 4 weeks ago

Similar to how wasmtime::runtime has a few off-by-default lints turned on for it do the same for the compilation phase of wasmtime-cranelift. This is intended to help weed out lossy as casts and instead steer users to from or try_from conversions.