From 241374aa8a949ba61a8832fc9f65831f03d420e7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 15 Jul 2020 23:30:15 +0100 Subject: [PATCH] Abolish LogEntryRef again nfc --- src/gamestate.rs | 4 +--- src/session.rs | 2 +- src/updates.rs | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gamestate.rs b/src/gamestate.rs index e147f25e..6b35f1da 100644 --- a/src/gamestate.rs +++ b/src/gamestate.rs @@ -41,7 +41,7 @@ pub struct GameState { pub pieces : DenseSlotMap, pub players : DenseSlotMap, pub gen : Generation, - pub log : Vec<(Generation,LogEntryRef)>, + pub log : Vec<(Generation,Arc)>, } #[derive(Debug,Serialize,Deserialize)] @@ -62,8 +62,6 @@ pub struct PlayerState { pub nick : String, } -pub type LogEntryRef = Arc; - #[derive(Debug,Serialize,Deserialize)] pub struct LogEntry { pub html : String, diff --git a/src/session.rs b/src/session.rs index 147ee232..5ae52ac4 100644 --- a/src/session.rs +++ b/src/session.rs @@ -11,7 +11,7 @@ struct SessionRenderContext { defs : Vec<(VisiblePieceId,String)>, nick : String, load : String, - log : Vec<(Generation, LogEntryRef)>, + log : Vec<(Generation,Arc)>, } #[derive(Serialize,Debug)] diff --git a/src/updates.rs b/src/updates.rs index 21b78bb9..9b97d749 100644 --- a/src/updates.rs +++ b/src/updates.rs @@ -32,7 +32,7 @@ pub enum PreparedUpdateEntry { piece : VisiblePieceId, op : PieceUpdateOp, }, - Log (LogEntryRef), + Log (Arc), } #[derive(Debug,Serialize)] -- 2.30.2