We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 385aeb4 commit 4f5c5ecCopy full SHA for 4f5c5ec
src/limiter.rs
@@ -79,7 +79,8 @@ impl<I: Copy + Sub<Output = Duration>> Bucket<I> {
79
///
80
/// # Examples
81
82
-/// ```rust
+#[cfg_attr(feature = "standard-clock", doc = "```rust")]
83
+#[cfg_attr(not(feature = "standard-clock"), doc = "```ignore")]
84
/// use async_speed_limit::Limiter;
85
/// use std::time::Duration;
86
@@ -175,7 +176,8 @@ macro_rules! declare_limiter {
175
176
/// Upload some small files atomically in parallel, while maintaining a
177
/// global speed limit of 1 MiB/s.
178
- /// ```rust
179
+ #[cfg_attr(feature = "standard-clock", doc = "```rust")]
180
+ #[cfg_attr(not(feature = "standard-clock"), doc = "```ignore")]
181
182
/// use futures_util::future::try_join_all;
183
0 commit comments