Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Fix rustfmt formatting violation in message_view.rs#3

Merged
davmoz merged 2 commits intomasterfrom
copilot/fix-cli-scroll-issue
Jan 23, 2026
Merged

Fix rustfmt formatting violation in message_view.rs#3
davmoz merged 2 commits intomasterfrom
copilot/fix-cli-scroll-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 23, 2026

CI formatting check failed on a line exceeding rustfmt's preferred line length in message view scroll logic. Scrolling functionality (PageUp/PageDown, j/k, g/G) already exists and is documented in help.

Changes

  • Split long method chain in src/ui/message_view.rs:39 across multiple lines per rustfmt style
// Before
let selected = app.selected_message_index.min(message_count.saturating_sub(1));

// After  
let selected = app
    .selected_message_index
    .min(message_count.saturating_sub(1));

Context

Scroll viewport tracking was implemented in prior commits. This PR only addresses the formatting violation blocking CI.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/srcfl/mqtop/actions/runs
    • Triggering command: /usr/bin/curl curl -s REDACTED /home/REDACTED/work/mqtop/mqtop/target/debug/deps/mockall_derive-1f5fc41bb6269229.mockall_derive.d42c099b603b9192-cgu.06.rcgu.o /home/REDACTED/work/mqtop/mqtop/target/debug/deps/mockall_derive-1f5fc41bb6269229.mockall_derive.d42c099b603b9192-cgu.07.rcgu.o /home/REDACTED/work/mqtop/mqtop/target/debug/deps/mockall_derive-1f5fc41bb6269229.mockall_derive.d42c099b603b9192-cgu.08.rcgu.o zvjybnmqbe5gr01x.1oi7czg.rcgu.o f014uwtjrkt5x87l.1oi7czg.rcgu.o lzf7p0edccpg21xq.1oi7czg.rcgu.o bhzyqtbnnr3vcaub.1oi7czg.rcgu.o rs0pvaempm001pnr.1oi7czg.rcgu.o 5i0ggarsjylnm179.1oi7czg.rcgu.o dm9hccpk746xxxne.1oi7czg.rcgu.o i2ajziyage1vyo9l.1oi7czg.rcgu.o icicqnzw7ape9fzv.1oi7czg.rcgu.o scujo1porolp1bkf.1oi7czg.rcgu.o 708c973uigs1y9ry.1oi7czg.rcgu.o u89x3x4ktxsy8986.1oi7czg.rcgu.o ph0i0izboo9wnm8w.1oi7czg.rcgu.o atall6lsvhkm6965.1oi7czg.rcgu.o (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>i want to be able to can scroll up and down in cli</issue_title>
<issue_description>i want to be able to can scroll up and down in cli when i have many topics in the tree

Image

</issue_description>

<agent_instructions>still not fixed, build failed, please fix</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: davmoz <26165830+davmoz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix scrolling in CLI for tree view Fix rustfmt formatting violation in message_view.rs Jan 23, 2026
Copilot AI requested a review from davmoz January 23, 2026 02:03
@davmoz davmoz marked this pull request as ready for review January 23, 2026 10:16
@davmoz davmoz merged commit 7c4706f into master Jan 23, 2026
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i want to be able to can scroll up and down in cli

2 participants