We don't in fact need this to be Clone, now that ServerConfig isn't.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
impl FakeRngSpec {
pub fn make_game_rng(self) -> RngWrap { RngWrap( match self.0 {
None => None,
- Some(ents) => Some(Arc::new(Mutex::new(FakeRng {
+ Some(ents) => Some(Mutex::new(FakeRng {
i: 0,
ents,
- }))) }
+ })) }
)}
}
-#[derive(Debug,Clone)]
+#[derive(Debug)]
pub struct RngWrap (
- Option<Arc<Mutex<FakeRng>>>
+ Option<Mutex<FakeRng>>
);
#[derive(Debug)]