diff --git a/packer/src/main.rs b/packer/src/main.rs index 7598d11df..cc0109c17 100644 --- a/packer/src/main.rs +++ b/packer/src/main.rs @@ -69,7 +69,7 @@ fn pack( let packtype_paths = pack_list .0 .get(&platform) - .ok_or_else(|| error::Error::MissingPlatformDefinition(platform))?; + .ok_or(error::Error::MissingPlatformDefinition(platform))?; let res = packtype_paths .into_par_iter() .map(|(&pack_type, pack_files)| { diff --git a/packer/src/types.rs b/packer/src/types.rs index c20c3d632..38c06c3a6 100644 --- a/packer/src/types.rs +++ b/packer/src/types.rs @@ -19,15 +19,7 @@ arg_enum! { } #[derive( - Debug, - Clone, - Copy, - PartialEq, - Eq, - PartialOrd, - Ord, - serde::Deserialize, - serde::Serialize + Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, serde::Deserialize, serde::Serialize, )] #[serde(rename_all = "lowercase")] pub enum PackType {