diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-11-16 02:36:12 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-11-16 02:36:12 +0100 |
| commit | e591ce43d3f9b85572f7ca179799fd6c3191f3ab (patch) | |
| tree | e3fafbfce1b8f3f3284c4dfb52285c14e60f1921 /src/plugins/currency.rs | |
| parent | 4c18f59ac4dfe1372374ecc63a5976ad58a5e272 (diff) | |
| download | frippy-e591ce43d3f9b85572f7ca179799fd6c3191f3ab.tar.gz frippy-e591ce43d3f9b85572f7ca179799fd6c3191f3ab.zip | |
Remove mutexes around plugins
Mutexes are supposed to only mark critical sections
so locking the entire plugin is too general.
Any plugins that need mutable data
should use mutexes internally instead.
Diffstat (limited to 'src/plugins/currency.rs')
| -rw-r--r-- | src/plugins/currency.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/currency.rs b/src/plugins/currency.rs index 4ba2531..d6cf928 100644 --- a/src/plugins/currency.rs +++ b/src/plugins/currency.rs @@ -130,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); |
