Skip to content

Commit 1e18839

Browse files
committed
fix warning
1 parent f318786 commit 1e18839

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ default = [
2626
"async-task",
2727
"crossbeam-channel",
2828
"crossbeam-deque",
29-
"futures-timer",
3029
"kv-log-macro",
3130
"log",
3231
"mio",
@@ -42,6 +41,7 @@ std = [
4241
"crossbeam-utils",
4342
"futures-core/std",
4443
"futures-io",
44+
"futures-timer",
4545
"memchr",
4646
"once_cell",
4747
"pin-utils",

src/utils.rs

-5
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,6 @@ macro_rules! extension_trait {
257257
$(#[cfg(feature = "docs")] $imp)*
258258
};
259259

260-
// Optimization: expand `$head` eagerly before starting a new method definition.
261-
(@ext ($($head:tt)*) #[doc = $d:literal] $($tail:tt)*) => {
262-
$($head)* extension_trait!(@ext (#[doc = $d]) $($tail)*);
263-
};
264-
265260
// Parse the return type in an extension method.
266261
(@doc ($($head:tt)*) -> impl Future<Output = $out:ty> $(+ $lt:lifetime)? [$f:ty] $($tail:tt)*) => {
267262
extension_trait!(@doc ($($head)* -> owned::ImplFuture<$out>) $($tail)*);

0 commit comments

Comments
 (0)