Fix clippy from the future (#687)

- `get_first`
This commit is contained in:
Stefan Holderbach 2023-12-26 17:00:40 +01:00 committed by GitHub
parent 1c17a8d0f2
commit f3962232ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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