From 3d5829b9a85f44305189c70a4f786a0325a8361c Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 7 Dec 2022 18:41:45 +0100 Subject: [PATCH] add missing feature flag --- src/time.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/time.rs b/src/time.rs index e399b3d..45277bc 100644 --- a/src/time.rs +++ b/src/time.rs @@ -273,6 +273,7 @@ impl TimeReader for CdsShortTimeProvider { /// See [chrono::DateTime::format] for a usage example of the generated /// [chrono::format::DelayedFormat] structs. pub mod ascii { + #[cfg(feature = "alloc")] use chrono::format::{DelayedFormat, StrftimeItems}; use chrono::{DateTime, Utc};