From 317a89d5eafeab590796ae74481d97950edd7bd5 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 27 Apr 2022 04:23:09 -0700 Subject: [PATCH] Avoid strutural repetition Summary: ^ Reviewed By: lawrencelomax Differential Revision: D35940119 fbshipit-source-id: 055e57bb9b9174b275fc0fccfff80a04b3f04b30 --- packer/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/src/types.rs b/packer/src/types.rs index ce4656e78..76a667dbe 100644 --- a/packer/src/types.rs +++ b/packer/src/types.rs @@ -15,7 +15,7 @@ impl str::FromStr for Platform { type Err = &'static str; fn from_str(s: &str) -> Result { - Ok(Platform(s.to_string())) + Ok(Self(s.to_string())) } }