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