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 7d38202ead4c0b18f227a33d255e637e8e11f925
parent 7e1bea39021f854eda8f9e43daad69ce9bec91c0
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());