Avoid strutural repetition
Summary: ^ Reviewed By: lawrencelomax Differential Revision: D35940119 fbshipit-source-id: 055e57bb9b9174b275fc0fccfff80a04b3f04b30
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5be8566d47
commit
317a89d5ea
@@ -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()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user