Skip to content

Commit cc8daae

Browse files
committed
chore: clippy
1 parent e1499f3 commit cc8daae

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

parser/src/nullable.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pub fn is_column_nullable(
2020
let mut parser = Parser::new(query.as_bytes());
2121
let cmd = parser.next().ok()??;
2222

23-
if let ast::Cmd::Stmt(ast::Stmt::Select(select)) = cmd {
24-
if let ast::OneSelect::Select {
23+
if let ast::Cmd::Stmt(ast::Stmt::Select(select)) = cmd
24+
&& let ast::OneSelect::Select {
2525
from: Some(from),
2626
where_clause,
2727
..
@@ -57,7 +57,6 @@ pub fn is_column_nullable(
5757
});
5858
}
5959
}
60-
}
6160

6261
None
6362
}

0 commit comments

Comments
 (0)