From 2d975eeddeb42f59e1a2e077654158454c5b23bb Mon Sep 17 00:00:00 2001 From: "taylor.fish" Date: Tue, 7 Jul 2026 18:33:10 -0700 Subject: [PATCH] chore(warnings): fix compile warnings with latest dependencies (#3586) `time::format_description::parse` is deprecated in the latest version of `time` (used when the lockfile is ignored, as with `cargo install atuin`); replace with the recommended alternative. This change is compatible with the older version of `time` in the lockfile. --- crates/atuin/src/command/client/search/history_list.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/atuin/src/command/client/search/history_list.rs b/crates/atuin/src/command/client/search/history_list.rs index 23c23548..f2251a1c 100644 --- a/crates/atuin/src/command/client/search/history_list.rs +++ b/crates/atuin/src/command/client/search/history_list.rs @@ -337,8 +337,10 @@ impl DrawState<'_> { let formatted = h .timestamp .format( - &time::format_description::parse("[year]-[month]-[day] [hour]:[minute]") - .expect("valid format"), + &time::format_description::parse_borrowed::<1>( + "[year]-[month]-[day] [hour]:[minute]", + ) + .expect("valid format"), ) .unwrap_or_else(|_| "????-??-?? ??:??".to_string()); let w = width as usize; -- knotmirror 0.0.1