Reduce size of ModifierInfo

This commit is contained in:
Veera 2024-04-10 15:48:22 -04:00
parent 5974fe87c4
commit 791ba531c0

View File

@ -9,11 +9,11 @@
pub struct ModifierInfo { pub struct ModifierInfo {
pub modifier: char, pub modifier: char,
pub result: &'static str, pub result: &'static str,
pub size: u64, pub size: u16,
} }
impl From<(char, &'static str, u64)> for ModifierInfo { impl From<(char, &'static str, u16)> for ModifierInfo {
fn from((modifier, result, size): (char, &'static str, u64)) -> Self { fn from((modifier, result, size): (char, &'static str, u16)) -> Self {
Self { modifier, result, size } Self { modifier, result, size }
} }
} }