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:
parent
d29508a25b
commit
19d790d45c
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ impl Class {
|
|||
where
|
||||
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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue