Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Move destructuring to fn signature
Matthias Beyer committed 9 months ago
commit 4e35a9713fbf0780521cf6b44401eafe2014b378
parent 1a9554e58e34611a0e61da156e6a9ef8630772b5
1 file changed +5 -3
modified crates/radicle-node/src/worker.rs
@@ -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());