mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
Reduce size of ModifierInfo
This commit is contained in:
parent
5974fe87c4
commit
791ba531c0
@ -9,11 +9,11 @@ use std::str::FromStr;
|
||||
pub struct ModifierInfo {
|
||||
pub modifier: char,
|
||||
pub result: &'static str,
|
||||
pub size: u64,
|
||||
pub size: u16,
|
||||
}
|
||||
|
||||
impl From<(char, &'static str, u64)> for ModifierInfo {
|
||||
fn from((modifier, result, size): (char, &'static str, u64)) -> Self {
|
||||
impl From<(char, &'static str, u16)> for ModifierInfo {
|
||||
fn from((modifier, result, size): (char, &'static str, u16)) -> Self {
|
||||
Self { modifier, result, size }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user