From: Ian Jackson Date: Sun, 12 Jul 2020 15:16:18 +0000 (+0100) Subject: uise a throws X-Git-Tag: otter-0.2.0~1351 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c82a20570ebb529779201680f7da19d24c83613d;p=otter.git uise a throws --- 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))? } }