diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-30 07:28:21 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-30 11:22:35 +0100 |
commit | 14f1a85d994ad97dae3d9de735fc51adb25d390a (patch) | |
tree | 0fa0d7c173a19dcb7117132325a801808302bcf8 /src/tokenizer/interface.rs | |
parent | baf1477c587fe22d27e94408cf2505d588ba007e (diff) |
introduce Error enum
Diffstat (limited to 'src/tokenizer/interface.rs')
-rw-r--r-- | src/tokenizer/interface.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenizer/interface.rs b/src/tokenizer/interface.rs index f12fb16..715f9bc 100644 --- a/src/tokenizer/interface.rs +++ b/src/tokenizer/interface.rs @@ -7,8 +7,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +use crate::error::Error; use crate::tokenizer::states; -use std::borrow::Cow; #[cfg(feature = "spans")] use std::ops::Range; @@ -112,7 +112,7 @@ pub enum Token { CharacterTokens(String), NullCharacterToken, EOFToken, - ParseError(Cow<'static, str>), + ParseError(Error), } #[derive(Debug, PartialEq)] |