From bd272b2d36f4e172c909588051208ecf1b4ccc66 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 17 Mar 2022 18:32:33 +0100 Subject: [PATCH] Improve code readability --- src/api_data/account_export_api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api_data/account_export_api.rs b/src/api_data/account_export_api.rs index 9c64384..ba1285e 100644 --- a/src/api_data/account_export_api.rs +++ b/src/api_data/account_export_api.rs @@ -58,14 +58,14 @@ impl AccountExportAPI { friends_list: FriendAPI::from_list(&export.friends_list), groups: export.groups .iter() - .map(|g| groups_helper::get_info(g)) + .map(groups_helper::get_info) .collect::, _>>()? .iter() - .map(|g| GroupApi::new(&g, curr_user_id.as_option())) + .map(|g| GroupApi::new(g, curr_user_id.as_option())) .collect::, _>>()?, users_info: export.get_related_users_ids()? .iter() - .map(|u| user_helper::find_user_by_id(u)) + .map(user_helper::find_user_by_id) .collect::, _>>()? .iter() .map(|u| {