From 6474b500ff35650a7d72396bbf0ab35f30be39d0 Mon Sep 17 00:00:00 2001 From: Link Mauve Date: Fri, 17 Oct 2025 09:46:40 +0200 Subject: [PATCH] Remove dead code in RemoteListPopup::draw_selected_remote_details() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only nightly CI found it[1], locally the lint didn’t fail, but that code is definitely dead code so let’s remove it. Modifying a POD struct like Rect and then doing nothing with it makes no sense. [1] https://github.com/gitui-org/gitui/actions/runs/18585963642/job/52989807824?pr=2727#step:8:694 --- src/popups/remotelist.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/popups/remotelist.rs b/src/popups/remotelist.rs index 409f44714d..61fb4fbcb7 100644 --- a/src/popups/remotelist.rs +++ b/src/popups/remotelist.rs @@ -384,11 +384,6 @@ impl RemoteListPopup { .wrap(Wrap { trim: true }), r, ); - - let mut r = r; - r.width += 1; - r.height += 2; - r.y = r.y.saturating_sub(1); } }