diff options
Diffstat (limited to 'crates/atuin-history/src/stats.rs')
| -rw-r--r-- | crates/atuin-history/src/stats.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/atuin-history/src/stats.rs b/crates/atuin-history/src/stats.rs index 5e8d59da..8bf03e42 100644 --- a/crates/atuin-history/src/stats.rs +++ b/crates/atuin-history/src/stats.rs @@ -324,7 +324,7 @@ mod tests { .into(); let stats = compute(&settings, &[history], 10, 1).expect("failed to compute stats"); - assert_eq!(stats.top.get(0).unwrap().0, vec!["echo"]); + assert_eq!(stats.top.first().unwrap().0, vec!["echo"]); } #[test] |
