Avoid strutural repetition

Summary: ^

Reviewed By: lawrencelomax

Differential Revision: D35940119

fbshipit-source-id: 055e57bb9b9174b275fc0fccfff80a04b3f04b30
This commit is contained in:
Pascal Hartig
2022-04-27 04:23:09 -07:00
committed by Facebook GitHub Bot
parent 5be8566d47
commit 317a89d5ea

View File

@@ -15,7 +15,7 @@ impl str::FromStr for Platform {
type Err = &'static str; type Err = &'static str;
fn from_str(s: &str) -> Result<Self, Self::Err> { fn from_str(s: &str) -> Result<Self, Self::Err> {
Ok(Platform(s.to_string())) Ok(Self(s.to_string()))
} }
} }