forked from mirror/async-std
fix warning
This commit is contained in:
parent
f31878655e
commit
1e18839f1f
2 changed files with 1 additions and 6 deletions
|
@ -26,7 +26,6 @@ default = [
|
||||||
"async-task",
|
"async-task",
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
"crossbeam-deque",
|
"crossbeam-deque",
|
||||||
"futures-timer",
|
|
||||||
"kv-log-macro",
|
"kv-log-macro",
|
||||||
"log",
|
"log",
|
||||||
"mio",
|
"mio",
|
||||||
|
@ -42,6 +41,7 @@ std = [
|
||||||
"crossbeam-utils",
|
"crossbeam-utils",
|
||||||
"futures-core/std",
|
"futures-core/std",
|
||||||
"futures-io",
|
"futures-io",
|
||||||
|
"futures-timer",
|
||||||
"memchr",
|
"memchr",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"pin-utils",
|
"pin-utils",
|
||||||
|
|
|
@ -257,11 +257,6 @@ macro_rules! extension_trait {
|
||||||
$(#[cfg(feature = "docs")] $imp)*
|
$(#[cfg(feature = "docs")] $imp)*
|
||||||
};
|
};
|
||||||
|
|
||||||
// Optimization: expand `$head` eagerly before starting a new method definition.
|
|
||||||
(@ext ($($head:tt)*) #[doc = $d:literal] $($tail:tt)*) => {
|
|
||||||
$($head)* extension_trait!(@ext (#[doc = $d]) $($tail)*);
|
|
||||||
};
|
|
||||||
|
|
||||||
// Parse the return type in an extension method.
|
// Parse the return type in an extension method.
|
||||||
(@doc ($($head:tt)*) -> impl Future<Output = $out:ty> $(+ $lt:lifetime)? [$f:ty] $($tail:tt)*) => {
|
(@doc ($($head:tt)*) -> impl Future<Output = $out:ty> $(+ $lt:lifetime)? [$f:ty] $($tail:tt)*) => {
|
||||||
extension_trait!(@doc ($($head)* -> owned::ImplFuture<$out>) $($tail)*);
|
extension_trait!(@doc ($($head)* -> owned::ImplFuture<$out>) $($tail)*);
|
||||||
|
|
Loading…
Reference in a new issue