From 47403f0d13a508a96f6845d2d5064a7e69d9ca5c Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Fri, 10 May 2024 15:38:53 +0200 Subject: [PATCH] chore(toolchain): update (#1452) * [create-pull-request] automated change * chore: fix clippy warnings --------- Co-authored-by: github-actions[bot] --- rust-toolchain.toml | 2 +- src/commands.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5d3340c58..1ec3ae926 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.77.2" +channel = "1.78.0" components = ["rustfmt", "clippy", "rust-analyzer"] diff --git a/src/commands.rs b/src/commands.rs index a4a2bef61..55b43e881 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -120,7 +120,7 @@ impl CommandManager { queue.len(), self.queue.get_current_index() ); - s.queuestate.queue = queue.clone(); + s.queuestate.queue.clone_from(&queue); s.queuestate.random_order = self.queue.get_random_order(); s.queuestate.current_track = self.queue.get_current_index(); s.queuestate.track_progress = self.spotify.get_current_progress();