Ver código fonte

Make SpricManager cloneable to simplify for clients.

Simon Persson 9 anos atrás
pai
commit
c98ff9bd54
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/spirc.rs

+ 1 - 0
src/spirc.rs

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