From df200f8106d611d93b83b2e06e8e15158ca95f50 Mon Sep 17 00:00:00 2001 From: sholderbach Date: Thu, 21 Dec 2023 20:53:30 +0100 Subject: [PATCH] Fix clippy from the future - `get_first` --- src/hinter/cwd_aware.rs | 2 +- src/hinter/default.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hinter/cwd_aware.rs b/src/hinter/cwd_aware.rs index c5c43815..67ab8697 100644 --- a/src/hinter/cwd_aware.rs +++ b/src/hinter/cwd_aware.rs @@ -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 diff --git a/src/hinter/default.rs b/src/hinter/default.rs index 2606a4d6..08ae57e8 100644 --- a/src/hinter/default.rs +++ b/src/hinter/default.rs @@ -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