diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-06-16 15:35:49 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-06-16 15:35:49 +0200 |
| commit | 9baade2a5d9fec54fe4d88216fbdb91c154ad348 (patch) | |
| tree | e4bee7605f2c2738574ad7d7a671c8b843bf53b5 /src/lib.rs | |
| parent | 768fcc68af3cc57f52ac7117cbf325479836159a (diff) | |
| download | frippy-9baade2a5d9fec54fe4d88216fbdb91c154ad348.tar.gz frippy-9baade2a5d9fec54fe4d88216fbdb91c154ad348.zip | |
Fix clippy warnings
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -239,7 +239,7 @@ impl ThreadedPlugins { // Send the message to the plugin if the plugin needs it match plugin.execute(client, &message) { ExecutionStatus::Done => (), - ExecutionStatus::Err(e) => log_error(e), + ExecutionStatus::Err(e) => log_error(&e), ExecutionStatus::RequiresThread => { debug!( "Spawning thread to execute {} with {}", @@ -257,14 +257,14 @@ impl ThreadedPlugins { .name(name) .spawn(move || { if let Err(e) = plugin.execute_threaded(&client, &message) { - log_error(e); + log_error(&e); } else { debug!("{} sent response from thread", plugin.name()); } }) .context(ErrorKind::ThreadSpawn) { - log_error(e.into()); + log_error(&e.into()); } } } @@ -290,7 +290,7 @@ impl ThreadedPlugins { .name(name) .spawn(move || { if let Err(e) = plugin.command(&client, command) { - log_error(e); + log_error(&e); }; }) .context(ErrorKind::ThreadSpawn)?; |
