浏览代码

Make SpricManager cloneable to simplify for clients.

Simon Persson 9 年之前
父节点
当前提交
c98ff9bd54
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/spirc.rs

+ 1 - 0
src/spirc.rs

@@ -14,6 +14,7 @@ use std::collections::HashMap;
 use protocol;
 pub use protocol::spirc::{PlayStatus, MessageType};
 
+#[derive(Clone)]
 pub struct SpircManager(Arc<Mutex<SpircInternal>>);
 
 struct SpircInternal {