Skip to content

Commit 7767162

Browse files
agu-zbenbrandt
andcommitted
Fix clippy
Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
1 parent ca1983c commit 7767162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/acp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ where
220220
let (tx, rx) = oneshot::channel();
221221
let id = self.next_id.fetch_add(1, SeqCst);
222222
self.response_senders.lock().insert(id, (method, tx));
223-
if !self
223+
if self
224224
.outgoing_tx
225225
.unbounded_send(OutgoingMessage::Request {
226226
id,
227227
method: method.into(),
228228
params,
229229
})
230-
.is_ok()
230+
.is_err()
231231
{
232232
self.response_senders.lock().remove(&id);
233233
}

0 commit comments

Comments
 (0)