Skip to content

refactor(config): prevent unnecessarily returning of ChannelToolchainName - #5175

Merged
rami3l merged 2 commits into
rust-lang:mainfrom
rami3l:refactor/returning-channel-tc-name
Oct 30, 2026
Merged

rami3l merged 2 commits into
rust-lang:mainfrom
rami3l:refactor/returning-channel-tc-name

Conversation

@rami3l

@rami3l rami3l commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Follow-up of #5108.

When reviewing #5139 I realized that:

  • The naming of Cfg::list_channels() is imprecise as it really just returned the tracking channels instead of all channels as the name may suggest.
  • Since ChannelToolchain<'_> already holds ChannelToolchainName, there should be no point in passing both as return values in a single function.

This patch only addresses those immediate concerns, and I'll leave #5139 (comment) for the rest of the cleanup. For example, there may be a need of listing all channels in general (rather than just tracking channels), and thus this logic is subject to further changes.

cc @14elias for review.

@rami3l
rami3l marked this pull request as ready for review October 29, 2026 16:35
@rami3l
rami3l requested a review from djc October 29, 2026 16:35
@rami3l rami3l changed the title refactor(config): prevent unnecessarily returning ChannelToolchainName refactor(config): prevent unnecessarily returning of ChannelToolchainName Oct 29, 2026
@14elias

14elias commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

LGTM.

@rami3l
rami3l added this pull request to the merge queue Oct 30, 2026
Merged via the queue into rust-lang:main with commit 2f3c4ea Oct 30, 2026
29 checks passed
@rami3l
rami3l deleted the refactor/returning-channel-tc-name branch October 30, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants