mirror of
https://github.com/nushell/reedline.git
synced 2024-10-27 01:45:51 +03:00
Fix clippy lint for DoubleEndedIterator (#610)
This commit is contained in:
parent
4f31e200e4
commit
12c6b7d3c7
@ -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())),
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user