remove impl for box dyn storage
This commit is contained in:
parent
dc137c075f
commit
3e37b4698f
4 changed files with 4 additions and 26 deletions
|
|
@ -41,7 +41,7 @@ impl TorrentStateInitializing {
|
|||
let initial_check_results = self.meta.spawner.spawn_block_in_place(|| {
|
||||
FileOps::new(
|
||||
&self.meta.info,
|
||||
&files,
|
||||
&*files,
|
||||
&self.meta.file_infos,
|
||||
&self.meta.lengths,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ impl TorrentStateLive {
|
|||
pub(crate) fn file_ops(&self) -> FileOps<'_> {
|
||||
FileOps::new(
|
||||
&self.meta.info,
|
||||
&self.files,
|
||||
&*self.files,
|
||||
&self.meta().file_infos,
|
||||
&self.lengths,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -303,8 +303,8 @@ impl ManagedTorrent {
|
|||
{
|
||||
self.with_state(|s| {
|
||||
let files = match s {
|
||||
crate::ManagedTorrentState::Paused(p) => &p.files,
|
||||
crate::ManagedTorrentState::Live(l) => &l.files,
|
||||
crate::ManagedTorrentState::Paused(p) => &*p.files,
|
||||
crate::ManagedTorrentState::Live(l) => &*l.files,
|
||||
_ => anyhow::bail!("invalid state"),
|
||||
};
|
||||
let fi = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue