Move destructuring to fn signature

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2025-08-19 08:57:29 +02:00 committed by Fintan Halpenny
parent 9486e751f2
commit cb7c748c66
1 changed files with 5 additions and 3 deletions

View File

@ -92,12 +92,14 @@ impl Worker {
}
}
fn process(&mut self, task: Task) {
let Task {
fn process(
&mut self,
Task {
fetch,
channels,
stream,
} = task;
}: Task,
) {
let remote = fetch.remote();
let channels = channels::ChannelsFlush::new(self.handle.clone(), channels, remote, stream);
let result = self._process(fetch, stream, channels, self.notifications.clone());