git-hulk opened a new pull request, #1488:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1488
```
warning: in a `match` scrutinee, avoid complex blocks or closures with
blocks; instead, move the block or closure higher and bind it with a `let`
--> src/dialect/postgresql.rs:233:74
|
233 | match parser.maybe_parse(|parser| -> Result<ObjectName,
ParserError> {
|
__________________________________________________________________________^
234 | | parser.expect_keyword(Keyword::CREATE)?;
235 | | parser.expect_keyword(Keyword::TYPE)?;
236 | | let name = parser.parse_object_name(false)?;
... |
239 | | Ok(name)
240 | | }) {
| |_____^
|
= help: for further information visit
https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions
= note: `#[warn(clippy::blocks_in_conditions)]` on by default
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]