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
This commit is contained in:
Pascal Hartig
2020-11-27 04:08:36 -08:00
committed by Facebook GitHub Bot
parent 37ae5f9e97
commit 911c3e297c
2 changed files with 2 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ fn pack(
let packtype_paths = pack_list let packtype_paths = pack_list
.0 .0
.get(&platform) .get(&platform)
.ok_or_else(|| error::Error::MissingPlatformDefinition(platform))?; .ok_or(error::Error::MissingPlatformDefinition(platform))?;
let res = packtype_paths let res = packtype_paths
.into_par_iter() .into_par_iter()
.map(|(&pack_type, pack_files)| { .map(|(&pack_type, pack_files)| {

View File

@@ -19,15 +19,7 @@ arg_enum! {
} }
#[derive( #[derive(
Debug, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, serde::Deserialize, serde::Serialize,
Clone,
Copy,
PartialEq,
Eq,
PartialOrd,
Ord,
serde::Deserialize,
serde::Serialize
)] )]
#[serde(rename_all = "lowercase")] #[serde(rename_all = "lowercase")]
pub enum PackType { pub enum PackType {