From 151933b40346331e926e9184c37b5cb84f533984 Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Fri, 21 Jun 2024 15:16:15 +0100 Subject: [PATCH] remove .inspect_err() --- crates/librqbit/src/session.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/librqbit/src/session.rs b/crates/librqbit/src/session.rs index 0d980043..0f8ccae1 100644 --- a/crates/librqbit/src/session.rs +++ b/crates/librqbit/src/session.rs @@ -1149,7 +1149,11 @@ impl Session { ManagedTorrentState::Paused(p) => Some(p.files), ManagedTorrentState::Live(l) => l .pause() - .inspect_err(|e| warn!("error pausing torrent: {e:?}")) + // inspect_err not available in 1.75 + .map_err(|e| { + warn!("error pausing torrent: {e:?}"); + e + }) .ok() .map(|p| p.files), _ => None,