Refactor: Make Spotify cloneable

This commit is contained in:
Henrik Friedrichsen
2021-04-03 22:35:08 +02:00
parent 8483653cde
commit 0f573f8247
14 changed files with 49 additions and 62 deletions

View File

@@ -37,7 +37,7 @@ pub enum CommandResult {
pub struct CommandManager {
aliases: HashMap<String, String>,
bindings: RefCell<HashMap<String, Command>>,
spotify: Arc<Spotify>,
spotify: Spotify,
queue: Arc<Queue>,
library: Arc<Library>,
config: Arc<Config>,
@@ -46,7 +46,7 @@ pub struct CommandManager {
impl CommandManager {
pub fn new(
spotify: Arc<Spotify>,
spotify: Spotify,
queue: Arc<Queue>,
library: Arc<Library>,
config: Arc<Config>,