From e623da51c6865c820db54c19217ea4e29095e112 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 30 Nov 2018 16:27:00 -0800 Subject: [PATCH] Suppress dead-code warnings on functions expanded from `entity_impl!`. --- lib/entity/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/entity/src/lib.rs b/lib/entity/src/lib.rs index 191a9c09e7..7d63eaee16 100644 --- a/lib/entity/src/lib.rs +++ b/lib/entity/src/lib.rs @@ -101,6 +101,7 @@ macro_rules! entity_impl { impl $entity { /// Return the underlying index value as a `u32`. + #[allow(dead_code)] pub fn as_u32(self) -> u32 { self.0 }