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:
a8fda49
)
Switch to deriving Deref
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 20:50:51 +0000
(21:50 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 4 May 2022 20:52:51 +0000
(21:52 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/pcrender.rs
patch
|
blob
|
history
diff --git
a/src/pcrender.rs
b/src/pcrender.rs
index 451aea9a3f1b496e56ce1de8e868b5e39e146171..cf06bf7c2934417200e838c0f3a12afd9f403c9a 100644
(file)
--- a/
src/pcrender.rs
+++ b/
src/pcrender.rs
@@
-19,12
+19,11
@@
pub enum SpecialClientRendering {
Die { },
}
-#[derive(Debug,Clone)]
+#[derive(Debug,Clone
,Deref
)]
pub struct PieceRenderInstructions {
pub vpid: VisiblePieceId,
- pub occulted: PriOcculted,
+
#[deref]
pub occulted: PriOcculted,
}
-deref_to_field!{PieceRenderInstructions, PriOcculted, occulted}
#[derive(Debug,Clone)]
pub enum PriOccultedGeneral<P,Z> {