chiark / gitweb /
uise a throws
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:16:18 +0000 (16:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:16:18 +0000 (16:16 +0100)
src/gamestate.rs

index 8aed7d083d0ffe181baf23676851da82023ccea1..70af0d0d15d7598337b30855a21905a18b6c22c8 100644 (file)
@@ -164,8 +164,9 @@ impl PieceState {
     }
   }
 
-  pub fn describe_html(&self, pri : &PieceRenderInstructions) -> Result<String,SE> {
-    self.p.describe_html(Some(pri.face))
+  #[throws(SE)]
+  pub fn describe_html(&self, pri : &PieceRenderInstructions) -> String {
+    self.p.describe_html(Some(pri.face))?
   }
 }