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 cb7c748c663c94d5d8ac1f5e1a5b682b1145f26d
parent 9486e751f2de576620057781e9143a41b42eb1e6
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());