Skip to content

Commit

Permalink
Fix clippy lint for DoubleEndedIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
sholderbach committed Jul 20, 2023
1 parent 4f31e20 commit 2dbadb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ impl Reedline {
)))
.unwrap_or_else(|_| Vec::new())
.get(0)
.and_then(|history| history.command_line.split_whitespace().rev().next())
.and_then(|history| history.command_line.split_whitespace().next_back())
.map(|token| (parsed.remainder.len(), indicator.len(), token.to_string())),
});

Expand Down

0 comments on commit 2dbadb1

Please sign in to comment.