diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-11-16 02:53:05 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-11-16 02:53:05 +0100 |
| commit | 15e855ddecfdac31ddda26b12fcfd1a142a0ec21 (patch) | |
| tree | b06e3bd122f5da69a7418c94e2a07fb4a529f897 /src/plugins/currency.rs | |
| parent | cb07b259950d4762ceb609266cd1e8ae0ef60dad (diff) | |
| parent | b8c25860ad769a466e7c50bbbb51b653dd55ccfb (diff) | |
| download | frippy-dac9b51d00d16c9b57f99cdd43a6f9c8470bf672.tar.gz frippy-dac9b51d00d16c9b57f99cdd43a6f9c8470bf672.zip | |
Merge branch 'dev'v0.3.1
Diffstat (limited to 'src/plugins/currency.rs')
| -rw-r--r-- | src/plugins/currency.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/currency.rs b/src/plugins/currency.rs index 78ae593..d6cf928 100644 --- a/src/plugins/currency.rs +++ b/src/plugins/currency.rs @@ -1,7 +1,6 @@ extern crate reqwest; extern crate serde; extern crate serde_json; -extern crate regex; use std::io::Read; use std::num::ParseFloatError; @@ -131,11 +130,11 @@ impl Plugin for Currency { false } - fn execute(&mut self, _: &IrcServer, _: &Message) -> Result<(), IrcError> { + fn execute(&self, _: &IrcServer, _: &Message) -> Result<(), IrcError> { panic!("Currency does not implement the execute function!") } - fn command(&mut self, server: &IrcServer, mut command: PluginCommand) -> Result<(), IrcError> { + fn command(&self, server: &IrcServer, mut command: PluginCommand) -> Result<(), IrcError> { if command.tokens.is_empty() { return self.invalid_command(server, &command); |
