Add Clone to Output

So `.cloned()` can be called on iterator.
This commit is contained in:
Maxim Zhiburt
2022-01-31 19:07:23 +03:00
parent 409724dc93
commit 37dd573d95

View File

@@ -179,7 +179,7 @@ impl Display for AnsiSequence {
///This is what is outputted by the parsing iterator.
///Each block contains either straight-up text, or simply
///an ANSI escape sequence.
#[derive(Debug, PartialEq)]
#[derive(Debug, Clone, PartialEq)]
pub enum Output<'a> {
TextBlock(&'a str),
Escape(AnsiSequence)