mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-24 16:04:04 +00:00
create Chars struct instead of using Peekable
This commit is contained in:
parent
7ff4133327
commit
69a140a820
5 changed files with 64 additions and 59 deletions
|
@ -1,8 +1,6 @@
|
|||
use std::cmp::PartialEq;
|
||||
use std::fmt::Debug;
|
||||
use std::rc::Rc;
|
||||
use std::str::Chars;
|
||||
use std::iter::Peekable;
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use super::tokenizer::*;
|
||||
|
@ -99,10 +97,10 @@ pub enum ParserError<TokenType>
|
|||
Custom(String)
|
||||
}
|
||||
|
||||
impl<TokenType> From<TokenizerError<TokenType>> for ParserError<TokenType>
|
||||
impl<TokenType> From<TokenizerError> for ParserError<TokenType>
|
||||
where TokenType: Debug + PartialEq {
|
||||
|
||||
fn from(_: TokenizerError<TokenType>) -> Self {
|
||||
fn from(_: TokenizerError) -> Self {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue