Skip to content

fix: disable pending review gadget when io_new is enabled - #430

Open
ryan-sentz wants to merge 1 commit into
LedgerHQ:developfrom
ryan-sentz:ryan/disable-pending-io-new
Open

ryan-sentz wants to merge 1 commit into
LedgerHQ:developfrom
ryan-sentz:ryan/disable-pending-io-new

Conversation

@ryan-sentz

@ryan-sentz ryan-sentz commented Sep 10, 2026

Copy link
Copy Markdown

the display_pending_review function uses the old comm interface / event type so this won't build with io_new enabled.

Copilot AI lite review requested due to automatic review settings September 10, 2026 20:13
@ryan-sentz
ryan-sentz requested a review from a team as a code owner September 10, 2026 20:13
@ryan-sentz
ryan-sentz requested review from tdejoigny-ledger and removed request for a team September 10, 2026 20:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Gating the function introduces io_new-only unused-import warnings that will fail CI under cargo clippy -- -D warnings, and there is also a rustdoc code-fence formatting issue in the edited area.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR aims to restore ledger_device_sdk build compatibility when the io_new feature is enabled by disabling the legacy-only display_pending_review UI gadget that depends on the old Comm::next_event<T>() API.

Changes:

  • Gate display_pending_review behind #[cfg(not(feature = "io_new"))] to avoid compiling legacy-IO code when io_new is enabled.
File summaries
File Description
ledger_device_sdk/src/ui/gadgets.rs Disables a legacy-IO-only UI helper when io_new is enabled to prevent build failures.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +72 to 74
#[cfg(not(feature = "io_new"))]
pub fn display_pending_review(comm: &mut Comm) {
clear_screen();
@@ -69,6 +69,7 @@ pub fn clear_screen() {
/// ...
/// }
/// `
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