From c3de2dbd23c92a2c441661bd351b44d14e2a91d0 Mon Sep 17 00:00:00 2001 From: liulifox233 Date: Tue, 4 Feb 2025 23:36:53 +0800 Subject: [PATCH] fix: fix wrong range in push_index_if_explain marco --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index ed33f2ce..712763a1 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -80,7 +80,7 @@ macro_rules! register_g_function { macro_rules! push_index_if_explain { ($this:ident) => {{ #[cfg(feature = "explain")] - if $this.cap > 1 { + if $this.cap > 0 { $this.expl.push($this.idx); } }};