From 53d33ae9b2329472c19d8b1c16d11acde379f2aa Mon Sep 17 00:00:00 2001 From: honhimW Date: Sat, 28 Sep 2024 03:00:20 +0800 Subject: [PATCH] update: cargo check --- Cargo.toml | 2 +- src/components/redis_cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f8a5b8f..ea2ea89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ratisui" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["honhimw "] rust-version = "1.81.0" diff --git a/src/components/redis_cli.rs b/src/components/redis_cli.rs index e0d193d..6381cfa 100644 --- a/src/components/redis_cli.rs +++ b/src/components/redis_cli.rs @@ -325,7 +325,7 @@ impl RedisCli<'_> { let mut is_right = true; let mut is_bottom = true; - let mut desc_width = self.min_desc_width; + let desc_width; let right_area_width = max_width.saturating_sub(menu_width.saturating_add(x)); if right_area_width < self.min_desc_width { if x < self.min_desc_width {