Skip to content

Conversation

@squadgazzz
Copy link
Contributor

KMS account client's debug information is too verbose, which is not useful. The proposal is to exclude this from the Debug impl entirely.

Copilot AI review requested due to automatic review settings September 22, 2025 16:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR customizes the Debug implementation for the KMS Account struct to exclude the verbose client field output while retaining debug information for key_id and address fields.

  • Replaces the derived Debug trait with a custom implementation
  • Excludes the client field from debug output to reduce verbosity
  • Maintains debug information for key_id and address fields

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@jmg-duarte jmg-duarte left a comment

Choose a reason for hiding this comment

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

LGTM, sad that Rust doesn't have something like #[debug(skip)] because for longer structs this would be kind of annoying to implement

@squadgazzz squadgazzz merged commit 8e112a8 into main Sep 24, 2025
6 checks passed
@squadgazzz squadgazzz deleted the better-kms-account-debug branch September 24, 2025 07:18
@MartinquaXD
Copy link
Contributor

LGTM, sad that Rust doesn't have something like rust-lang/rust#37009 (comment) because for longer structs this would be kind of annoying to implement

@jmg-duarte, it's not built in but this can be done with the derivative crate (see here).

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.

4 participants