Fix no_index build.

This commit is contained in:
Stephen Chung
2021-09-28 16:36:31 +08:00
parent b90776911d
commit 7ce8887343
2 changed files with 16 additions and 8 deletions

View File

@@ -338,6 +338,7 @@ impl ChainArgument {
/// Return the [position][Position].
#[inline(always)]
#[must_use]
#[allow(dead_code)]
pub const fn position(&self) -> Position {
match self {
#[cfg(not(feature = "no_object"))]