remove .inspect_err()

This commit is contained in:
Igor Katson 2024-06-21 15:16:15 +01:00
parent 36359150a7
commit 151933b403
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -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,