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
Interesting. TIL that usize implements From<u8> and From<u16>. (But not From from any other numeric type, and I don't believe Into for any numeric types).
Using
From
(orinto()
) is easier to read than using casts because it stops devs having to wonder if an data being lost.We have a few places where we use casts to cast
u8
tousize
Could be written as:
The text was updated successfully, but these errors were encountered: