unnecessary-fallible-conversion Simplify fallible integer conversions that cannot fail A fallible integer conversion adds an undefined case when the source type always fits the destination. Instead, you SHOULD remove identity conversions and use as for lossless widening conversions. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function widen(value: int32): int64 | undefined { return value.tryInto(); } Accepted function widen(value: int32): int64 | undefined { return value as int64; } Prior art - Clippy ยท unnecessaryfallibleconversions language/linter/src/rules/style/unnecessaryfallibleconversion.rs:8