remove .inspect_err()
This commit is contained in:
parent
36359150a7
commit
151933b403
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue