Move destructuring to fn signature
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
9486e751f2
commit
cb7c748c66
|
|
@ -92,12 +92,14 @@ impl Worker {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process(&mut self, task: Task) {
|
fn process(
|
||||||
let Task {
|
&mut self,
|
||||||
|
Task {
|
||||||
fetch,
|
fetch,
|
||||||
channels,
|
channels,
|
||||||
stream,
|
stream,
|
||||||
} = task;
|
}: Task,
|
||||||
|
) {
|
||||||
let remote = fetch.remote();
|
let remote = fetch.remote();
|
||||||
let channels = channels::ChannelsFlush::new(self.handle.clone(), channels, remote, stream);
|
let channels = channels::ChannelsFlush::new(self.handle.clone(), channels, remote, stream);
|
||||||
let result = self._process(fetch, stream, channels, self.notifications.clone());
|
let result = self._process(fetch, stream, channels, self.notifications.clone());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue