From 855b994b7a5dd9cd1e116d86e4c22f3a8e8ceea3 Mon Sep 17 00:00:00 2001 From: Jokler Date: Mon, 19 Mar 2018 17:15:13 +0100 Subject: Use longer variable names in tell for readability --- src/plugins/tell/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/tell/mod.rs b/src/plugins/tell/mod.rs index a9c5da8..851fa94 100644 --- a/src/plugins/tell/mod.rs +++ b/src/plugins/tell/mod.rs @@ -68,14 +68,14 @@ impl Tell { if let Some(_) = channels .iter() - .map(|c| client.list_users(&c)) - .map(|opt| { - opt.and_then(|us| { - us.into_iter() - .find(|u| u.get_nickname().eq_ignore_ascii_case(&receiver)) + .map(|channel| client.list_users(&channel)) + .map(|option| { + option.and_then(|users| { + users.into_iter() + .find(|user| user.get_nickname().eq_ignore_ascii_case(&receiver)) }) }) - .find(|opt| opt.is_some()) + .find(|option| option.is_some()) { online.push(receiver); continue; -- cgit v1.2.3-70-g09d2