1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 10:14:06 +02:00

dont unwrap when casting ints to Class

This commit is contained in:
Robin Appelman 2025-10-09 00:41:16 +02:00
commit 19d790d45c

View file

@ -143,7 +143,7 @@ impl Class {
where where
u8: TryFrom<U>, u8: TryFrom<U>,
{ {
Class::try_from(u8::try_from(number).unwrap_or_default()).unwrap_or_default() Class::try_from(u8::try_from(number).unwrap_or_default()).unwrap()
} }
} }