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 8 months ago
commit 46710f48830f9751817e1790da60a44293faadf5
parent 7a2f43396bbb1ec364d3dee638ffe07bc2c510d1
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());