diff --git a/linkerd/http/body-eos/src/lib.rs b/linkerd/http/body-eos/src/lib.rs index 91ce0b33bf..0990ac2a86 100644 --- a/linkerd/http/body-eos/src/lib.rs +++ b/linkerd/http/body-eos/src/lib.rs @@ -130,3 +130,16 @@ where }; } } + +// === impl EosRef === + +/// A reference to the end of a stream can be cheaply cloned. +/// +/// Each of the variants are empty tags, or immutable references. +impl<'a, E> Clone for EosRef<'a, E> { + fn clone(&self) -> Self { + *self + } +} + +impl<'a, E> Copy for EosRef<'a, E> {}