From b5532e4710f3f3ede2611fc611f1eb0899de73e2 Mon Sep 17 00:00:00 2001 From: Yoh Deadfall Date: Fri, 15 Nov 2024 21:49:32 +0300 Subject: [PATCH] Fixed a macro hygiene issue --- src/enc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc.rs b/src/enc.rs index c2c978f..ee4b838 100644 --- a/src/enc.rs +++ b/src/enc.rs @@ -210,7 +210,7 @@ macro_rules! encoding { } #[inline] - fn stage_by_value(&self, value: i64) -> ::std::option::Option<&Stage> { + fn stage_by_value(&self, value: i64) -> ::std::option::Option<&$crate::enc::Stage> { Self::STAGES.binary_search_by(|stage|{ let result = stage.ordinal_min().cmp(&value); if result.is_gt() {