You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A special case for cast_sign_loss, if the absolute value is taken, the value is guaranteed to be non-negative. As such, a cast from iX to uY where Y >= X is unquestionably safe.
I'm using clippy 0.0.212 (cd3df6b 2019-08-20), though I suspect this hasn't changed in the meantime.
The text was updated successfully, but these errors were encountered:
jhpratt
changed the title
0i8.abs as u8 is not lossy0i8.abs() as u8 is not lossy
Oct 1, 2019
A special case for
cast_sign_loss
, if the absolute value is taken, the value is guaranteed to be non-negative. As such, a cast from iX to uY where Y >= X is unquestionably safe.I'm using clippy 0.0.212 (cd3df6b 2019-08-20), though I suspect this hasn't changed in the meantime.
The text was updated successfully, but these errors were encountered: