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())) } }