diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-03-19 17:15:13 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-03-19 17:15:13 +0100 |
| commit | 855b994b7a5dd9cd1e116d86e4c22f3a8e8ceea3 (patch) | |
| tree | 5decdc2dac81a6d021566c165304bca1f56afca6 /src | |
| parent | 00951e31da6b74c422d26eaa572df39c365ebf9b (diff) | |
| download | frippy-855b994b7a5dd9cd1e116d86e4c22f3a8e8ceea3.tar.gz frippy-855b994b7a5dd9cd1e116d86e4c22f3a8e8ceea3.zip | |
Use longer variable names in tell for readability
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/tell/mod.rs | 12 |
1 files 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<T: Database> Tell<T> { 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; |
