mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Improve style
This commit is contained in:
parent
9aac0c9ae3
commit
1bde828141
@ -13,8 +13,8 @@ pub struct ModifierInfo {
|
||||
}
|
||||
|
||||
impl From<(char, &'static str, u64)> for ModifierInfo {
|
||||
fn from(value: (char, &'static str, u64)) -> Self {
|
||||
Self { modifier: value.0, result: value.1, size: value.2 }
|
||||
fn from((modifier, result, size): (char, &'static str, u64)) -> Self {
|
||||
Self { modifier, result, size }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user