mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03: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 {
|
impl From<(char, &'static str, u64)> for ModifierInfo {
|
||||||
fn from(value: (char, &'static str, u64)) -> Self {
|
fn from((modifier, result, size): (char, &'static str, u64)) -> Self {
|
||||||
Self { modifier: value.0, result: value.1, size: value.2 }
|
Self { modifier, result, size }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user