Boxes rpc client_error::Error's ErrorKind field#6293
Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom Jun 16, 2025
Merged
Boxes rpc client_error::Error's ErrorKind field#6293brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo merged 1 commit intoanza-xyz:masterfrom
Conversation
|
If this PR represents a change to the public RPC API:
Thank you for keeping the RPC clients in sync with the server API @brooksprumo. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #6293 +/- ##
========================================
Coverage 82.8% 82.8%
========================================
Files 847 847
Lines 379488 379488
========================================
+ Hits 314367 314524 +157
+ Misses 65121 64964 -157 🚀 New features to boost your workflow:
|
ec43207 to
7916988
Compare
7916988 to
92fec40
Compare
**BREAKING CHANGE**, since the ErrorKind field is public and exported. https://docs.rs/solana-rpc-client-api/2.2.7/solana_rpc_client_api/client_error/struct.Error.html
92fec40 to
6778e53
Compare
steveluscher
approved these changes
Jun 16, 2025
This was referenced Jun 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Issue #6278: The rpc
client_error::Errorstruct triggers theresult_large_errclippy lint. This is because thekindfield is of typeErrorKind, which is 232 bytes. To fix this, and since this is only needed in the error case, we can box theErrorKind.Please see #6290 (comment) for the full context.
Summary of Changes
Boxes solana_rpc_client_api::client_error::Error's ErrorKind field,
kind.Important
Since the ErrorKind field is public and exported1, this is an API-BREAKING CHANGE. As such, the earliest it can be merged is in v3.0.
Footnotes
https://docs.rs/solana-rpc-client-api/2.2.7/solana_rpc_client_api/client_error/struct.Error.html ↩