diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-01 09:06:44 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 10:36:08 +0200 |
commit | c75dce875cff03e59ec7b6bceed4ec63283a6477 (patch) | |
tree | f478ed26b04a965cd3e5fb1604ed204187cc64be /src/tokenizer.rs | |
parent | bd446b6123e0b077a48e9f1e836affac78822f44 (diff) |
feat: impl Clone for Token & Event
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 661214c..83b18e1 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -72,7 +72,7 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> { } /// An event yielded by the [`Iterator`] implementation for the [`Tokenizer`]. -#[derive(Debug)] +#[derive(Clone, Debug)] pub enum Event<T> { /// A token emitted by the [`Emitter`]. Token(T), |