diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5d3340c..1ec3ae9 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 a4a2bef..55b43e8 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();