Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Jan 3, 2024
1 parent 950d66d commit 6a0fe0f
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 @@ -1538,7 +1538,7 @@ impl Reedline {
self.get_history_session_id(),
)))
.unwrap_or_else(|_| Vec::new())
.get(0)
.first()

Check warning on line 1541 in src/engine.rs

View check run for this annotation

Codecov / codecov/patch

src/engine.rs#L1541

Added line #L1541 was not covered by tests
.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 6a0fe0f

Please sign in to comment.