chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ef8535
)
uise a throws
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:16:18 +0000
(16:16 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 12 Jul 2020 15:16:18 +0000
(16:16 +0100)
src/gamestate.rs
patch
|
blob
|
history
diff --git
a/src/gamestate.rs
b/src/gamestate.rs
index 8aed7d083d0ffe181baf23676851da82023ccea1..70af0d0d15d7598337b30855a21905a18b6c22c8 100644
(file)
--- a/
src/gamestate.rs
+++ b/
src/gamestate.rs
@@
-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))?
}
}