Suppress dead-code warnings on functions expanded from entity_impl!.

This commit is contained in:
Dan Gohman
2018-11-30 16:27:00 -08:00
parent 91477d21c8
commit e623da51c6

View File

@@ -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
}