Skip to content

Commit

Permalink
Fix clippy from the future (#687)
Browse files Browse the repository at this point in the history
- `get_first`
  • Loading branch information
sholderbach authored Dec 26, 2023
1 parent 1c17a8d commit f396223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hinter/cwd_aware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl Hinter for CwdAwareHinter {
history.session(),
))
.unwrap_or_default()
.get(0)
.first()
.map_or_else(String::new, |entry| {
entry
.command_line
Expand Down
2 changes: 1 addition & 1 deletion src/hinter/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Hinter for DefaultHinter {
history.session(),
))
.expect("todo: error handling")
.get(0)
.first()
.map_or_else(String::new, |entry| {
entry
.command_line
Expand Down

0 comments on commit f396223

Please sign in to comment.