Skip to content

Commit

Permalink
cargo clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh committed Dec 23, 2024
1 parent bc3b742 commit 5baea92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sqllogictest/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,7 @@ fn parse_inner<T: ColumnType>(loc: &Location, script: &str) -> Result<Vec<Record
.try_collect()?;
let sort_mode = res
.first()
.map(|&s| SortMode::try_from_str(s).ok())
.flatten(); // Ignore sort mode if parsing failed
.and_then(|&s| SortMode::try_from_str(s).ok()); // Ignore sort mode if parsing failed

let retry_start = if sort_mode.is_some() { 1 } else { 0 };
(
Expand Down

0 comments on commit 5baea92

Please sign in to comment.