Skip to content

Commit f396223

Browse files
authored
Fix clippy from the future (#687)
- `get_first`
1 parent 1c17a8d commit f396223

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hinter/cwd_aware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl Hinter for CwdAwareHinter {
5353
history.session(),
5454
))
5555
.unwrap_or_default()
56-
.get(0)
56+
.first()
5757
.map_or_else(String::new, |entry| {
5858
entry
5959
.command_line

src/hinter/default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl Hinter for DefaultHinter {
2323
history.session(),
2424
))
2525
.expect("todo: error handling")
26-
.get(0)
26+
.first()
2727
.map_or_else(String::new, |entry| {
2828
entry
2929
.command_line

0 commit comments

Comments
 (0)