Needed during a check on the workspace unfortunately.
There will be another solution for this i'm sure.
@@ -67,8 +67,11 @@ cfg_if::cfg_if! {
// Docs with all features makes nice docs for all sub modules. Since the modules chrono and
// tzrs are mututally exclusive however, the test runs are done independently, and the
// `--all-features` flag cannot be used. This works around that issue
- if #[cfg(all(doc, feature = "tzrs", feature = "chrono"))] {
+ if #[cfg(any(all(doc, feature = "tzrs", feature = "chrono"), feature = "cargo-clippy"))] {
pub use time::{tzrs,chrono};
+ // TODO this is needed due to artichoke-backend needing at least one implementation of
+ // `Time` during clippy parsing
+ pub use time::chrono::Time;
} else if #[cfg(all(doc, feature = "tzrs"))] {
pub use time::tzrs;
} else if #[cfg(all(doc, feature = "chrono"))] {
