diff options
author | Haibo Huang <hhb@google.com> | 2021-02-09 17:18:40 -0800 |
---|---|---|
committer | Haibo Huang <hhb@google.com> | 2021-02-09 17:18:40 -0800 |
commit | 5bf87961dae56416e2d56424ed8218a6edbe5e6f (patch) | |
tree | 6768a19a65780281fc232fc768b947d4be2b124b /src/stream/empty.rs | |
parent | eb238164a0443a868191cb9baddcf49ce9c16fb7 (diff) | |
download | futures-util-5bf87961dae56416e2d56424ed8218a6edbe5e6f.tar.gz |
Upgrade rust/crates/futures-util to 0.3.12
Test: make
Change-Id: I735974ef5485b6b8c6a9a5cba71199f268878982
Diffstat (limited to 'src/stream/empty.rs')
-rw-r--r-- | src/stream/empty.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stream/empty.rs b/src/stream/empty.rs index 903af68..d228b31 100644 --- a/src/stream/empty.rs +++ b/src/stream/empty.rs @@ -38,3 +38,9 @@ impl<T> Stream for Empty<T> { (0, Some(0)) } } + +impl<T> Clone for Empty<T> { + fn clone(&self) -> Self { + empty() + } +} |