From 911c3e297c872f5ea33a03d10ee177d54b8f06bb Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Fri, 27 Nov 2020 04:08:36 -0800 Subject: [PATCH] Fix lints (#1716) Summary: Fix a lint that's currently failing. See https://github.com/facebook/flipper/runs/1449249447?check_suite_focus=true Pull Request resolved: https://github.com/facebook/flipper/pull/1716 Test Plan: cargo clippy succeeds now. Reviewed By: nikoant Differential Revision: D25170963 Pulled By: passy fbshipit-source-id: 658f8b6abaef9860be9ff07447d2354727acb7c7 --- packer/src/main.rs | 2 +- packer/src/types.rs | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) 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 {