Skip to content

Commit

Permalink
remove .inspect_err()
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Jun 21, 2024
1 parent 3635915 commit 151933b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/librqbit/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 151933b

Please sign in to comment.