From 53aef1ac6ed7002307a3a56e5c165dc5dc93d083 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 14 Jul 2022 09:49:07 -0700 Subject: [PATCH] fix build; last commit passed `cargo check` but not `cargo build`!? --- wezterm-font/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wezterm-font/src/lib.rs b/wezterm-font/src/lib.rs index b3f568cb7d2..17655275add 100644 --- a/wezterm-font/src/lib.rs +++ b/wezterm-font/src/lib.rs @@ -396,12 +396,13 @@ impl FallbackResolveInfo { .map(|c| std::char::from_u32(c).unwrap_or(' ')) .collect::(); + let current_gen = self.config.generation(); let show_warning = self.config.warn_about_missing_glyphs && LAST_WARNING .lock() .unwrap() .map(|(instant, generation)| { - generation != self.config.generation() + generation != current_gen || instant.elapsed() > Duration::from_secs(60 * 60) }) .unwrap_or(true);