$ errors.fyi/rust/E0054 74 namespaces · 3,092 codes
rust · rust/E0054
E0054

Cast to Bool

An attempt was made to cast a numeric type to bool using the as operator, which Rust does not permit. Use a comparison expression such as x != 0 to convert a number to a boolean.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT