From 865e59e777fa57b19c270f55a96f4d3b37e6d0f3 Mon Sep 17 00:00:00 2001 From: femshima <49227365+femshima@users.noreply.github.com> Date: Wed, 24 Jan 2024 14:46:42 +0900 Subject: [PATCH] gate FailRegex --- crates/jlabel-question/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/jlabel-question/src/lib.rs b/crates/jlabel-question/src/lib.rs index bde5971..3c40dcd 100644 --- a/crates/jlabel-question/src/lib.rs +++ b/crates/jlabel-question/src/lib.rs @@ -30,6 +30,7 @@ pub enum ParseError { FailLiteral(ParseIntError), #[error("Invalid boolean: {0}")] InvalidBoolean(String), + #[cfg(feature = "regex")] #[error("Failed regex")] FailRegex, }