aboutsummaryrefslogtreecommitdiff
path: root/pulse/src/communication.rs
diff options
context:
space:
mode:
authorAndreas Grois <andi@grois.info>2021-11-29 22:38:44 +0100
committerAndreas Grois <andi@grois.info>2021-11-29 22:38:44 +0100
commit6277f4351fd68f1cdd434818eac7b0d18eac3c76 (patch)
treea9d221d635b9e524569aca0947388c1b6fe4c930 /pulse/src/communication.rs
parent8e186854556838353091b87f7a2be3ac5d400523 (diff)
Run clippy and fix all lints.
Diffstat (limited to 'pulse/src/communication.rs')
-rw-r--r--pulse/src/communication.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pulse/src/communication.rs b/pulse/src/communication.rs
index 51456d9..ce31875 100644
--- a/pulse/src/communication.rs
+++ b/pulse/src/communication.rs
@@ -21,7 +21,7 @@ impl<'p> SenderForMain {
}
fn send(&self, message : MessagesFromMain) -> Result<(), PluginCommunicationError> {
- if let Ok(_) = self.sender.send(message) {
+ if self.sender.send(message).is_ok() {
//The cool thing about pulse using poll() is that poll() also wakes up if started after
//the actual wake up call. So no need to worry about races, this is inherently sane!
self.pulse_waker.as_ref().ok_or(PluginCommunicationError {})?.wake_up()?;