add feature flag to avoid unused imports

This commit is contained in:
Robin Müller 2022-12-30 23:03:28 +01:00
parent 9b091e3a3a
commit 30a9cb8c5b
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -4,6 +4,7 @@
//! [chrono::format::DelayedFormat] structs.
#[cfg(feature = "alloc")]
use chrono::format::{DelayedFormat, StrftimeItems};
#[cfg(feature = "alloc")]
use chrono::{DateTime, Utc};
/// Tuple of format string and formatted size for time code A.