From c82a20570ebb529779201680f7da19d24c83613d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 12 Jul 2020 16:16:18 +0100 Subject: [PATCH] uise a throws --- src/gamestate.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gamestate.rs b/src/gamestate.rs index 8aed7d08..70af0d0d 100644 --- a/src/gamestate.rs +++ b/src/gamestate.rs @@ -164,8 +164,9 @@ impl PieceState { } } - pub fn describe_html(&self, pri : &PieceRenderInstructions) -> Result { - self.p.describe_html(Some(pri.face)) + #[throws(SE)] + pub fn describe_html(&self, pri : &PieceRenderInstructions) -> String { + self.p.describe_html(Some(pri.face))? } } -- 2.30.2