This commit is contained in:
Igor Katson 2021-07-03 15:52:39 +01:00
parent 2061fe56bb
commit 487ff50bd7
5 changed files with 28 additions and 16 deletions

View file

@ -27,12 +27,10 @@ impl Magnet {
}
}
match info_hash {
Some(info_hash) => {
return Ok(Magnet {
info_hash,
trackers,
})
}
Some(info_hash) => Ok(Magnet {
info_hash,
trackers,
}),
None => {
anyhow::bail!("did not find infohash")
}