Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <[email protected]>
  • Loading branch information
TennyZhuang committed Mar 30, 2024
1 parent 1480859 commit d0abf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqlparser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ impl Parser {
pub fn parse_escape_char(&mut self) -> Result<Option<EscapeChar>, ParserError> {
if self.parse_keyword(Keyword::ESCAPE) {
let s = self.parse_literal_string()?;
if s.len() == 0 {
if s.is_empty() {
Ok(Some(EscapeChar::empty()))
} else if s.len() == 1 {
Ok(Some(EscapeChar::escape(s.chars().next().unwrap())))
Expand Down

0 comments on commit d0abf78

Please sign in to comment.