mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-25 09:46:49 +00:00
Remove two useless rules from extension_trait!
.
They never run because they are subsumed by the two rules immediately above.
This commit is contained in:
parent
b90c2cddd1
commit
21fb4ac0fb
1 changed files with 0 additions and 8 deletions
|
@ -309,14 +309,6 @@ macro_rules! extension_trait {
|
|||
extension_trait!(@ext ($($head)* -> $f) $($tail)*);
|
||||
};
|
||||
|
||||
// Parse the return type in an extension method.
|
||||
(@doc ($($head:tt)*) -> impl Future<Output = $out:ty> + $lt:lifetime [$f:ty] $($tail:tt)*) => {
|
||||
extension_trait!(@doc ($($head)* -> borrowed::ImplFuture<$lt, $out>) $($tail)*);
|
||||
};
|
||||
(@ext ($($head:tt)*) -> impl Future<Output = $out:ty> + $lt:lifetime [$f:ty] $($tail:tt)*) => {
|
||||
extension_trait!(@ext ($($head)* -> $f) $($tail)*);
|
||||
};
|
||||
|
||||
// Parse a token.
|
||||
(@doc ($($head:tt)*) $token:tt $($tail:tt)*) => {
|
||||
extension_trait!(@doc ($($head)* $token) $($tail)*);
|
||||
|
|
Loading…
Reference in a new issue