From 6277f4351fd68f1cdd434818eac7b0d18eac3c76 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Mon, 29 Nov 2021 22:38:44 +0100 Subject: Run clippy and fix all lints. --- pulse/src/communication.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pulse/src/communication.rs') 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()?; -- cgit v1.2.3