Skip to content

Commit 432d2b4

Browse files
committed
update indexmap
1 parent dfc18cd commit 432d2b4

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Cargo.lock

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ lazy_static = "1.4.0"
1818
log = "0.4.0"
1919
env_logger = "0.7.1"
2020
envy = "0.4"
21-
indexmap = "1.3"
21+
indexmap = "1.6"

src/ban.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ pub(crate) fn start_cleanup_thread(cx: Context) {
7777
// always keep the last command in history
7878
if history.len() > 0 {
7979
info!("Clearing command history");
80-
let (key, value) = history.pop().unwrap();
81-
history.drain(..);
82-
history.insert(key, value);
80+
history.drain(..history.len() - 1);
8381
}
8482

8583
drop(data);

0 commit comments

Comments
 (0)