From cc35e1f5be87db1d522d8a3258b0c0dbdada2e65 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 19 Nov 2024 18:55:22 +0100 Subject: [PATCH] don't return useless error --- src/subsonic.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/subsonic.rs b/src/subsonic.rs index 6f5b66a..c59babf 100644 --- a/src/subsonic.rs +++ b/src/subsonic.rs @@ -204,11 +204,7 @@ impl Client { }) } - sender.send(perform(future.await).await).await.map_err(|_| { - Error::OtherError( - "failed to send back response from tokio request (future probably cancelled)", - ) - }) + let _ = sender.send(perform(future.await).await).await; }); receiver