From 82676b976a5a6397eda4e83bcbf9af8953bfbdf3 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 19 Sep 2024 06:59:15 -0400 Subject: [PATCH] EPEL9: Ignore doctests that require very recent Rust compilers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In this crate, doctests and examples (but not the lib and integration tests) are allowed to use Rust features from versions newer than the MSRV. It’s therefore necessary to ignore some of them on EPEL9. If this patch becomes too unwieldy, we could choose to start skipping doctests and/or examples there entirely. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b058186..5e791fd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -262,7 +262,7 @@ println!("{zdt}"); You can eliminate the possibility of a panic at runtime by using `time` in a `const` block: -``` +```ignore use jiff::{civil::time, Zoned}; let zdt = Zoned::now().with().time(const { time(14, 0, 0, 0) }).build()?; -- 2.46.0