diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-03-05 16:15:44 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-03-05 16:15:44 +0100 |
| commit | 3e439f17248a5168c22955d7cb4d0a9ba7531e5f (patch) | |
| tree | a95a4edcf24e6a5ecca1dca34add011aa4a234f3 | |
| parent | 095af339c035bc750993318311c9a35ea455e9a7 (diff) | |
| download | frippy-3e439f17248a5168c22955d7cb4d0a9ba7531e5f.tar.gz frippy-3e439f17248a5168c22955d7cb4d0a9ba7531e5f.zip | |
Fix formatting
| -rw-r--r-- | src/plugins/tell/mod.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/tell/mod.rs b/src/plugins/tell/mod.rs index ccca300..dad5235 100644 --- a/src/plugins/tell/mod.rs +++ b/src/plugins/tell/mod.rs @@ -144,9 +144,7 @@ impl<T: Database> Tell<T> { impl<T: Database> Plugin for Tell<T> { fn execute(&self, client: &IrcClient, message: &Message) -> ExecutionStatus { match message.command { - Command::JOIN(_, _, _) => { - self.send_tells(client, message.source_nickname().unwrap()) - } + Command::JOIN(_, _, _) => self.send_tells(client, message.source_nickname().unwrap()), _ => ExecutionStatus::Done, } } @@ -174,9 +172,9 @@ impl<T: Database> Plugin for Tell<T> { .send_notice(&sender, &msg) .context(FrippyErrorKind::Connection), Err(e) => client - .send_notice(&sender, &e.to_string()) - .context(FrippyErrorKind::Connection) - .into() + .send_notice(&sender, &e.to_string()) + .context(FrippyErrorKind::Connection) + .into(), }, }?) } |
