Skip to content

Boxes inner tonic::Status inside BigTableError::Rpc#6624

Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:clippy/large-err/big-table
Jul 1, 2025
Merged

Boxes inner tonic::Status inside BigTableError::Rpc#6624
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:clippy/large-err/big-table

Conversation

@brooksprumo
Copy link
Copy Markdown

Problem

Issue #6278: The BigTableError triggers the result_large_err clippy lint. This is because a variant, Rpc, contains a tonic::Status, which is 176 bytes. To fix this, and since this is only needed in the error case, we can box the tonic::Status.

Similar to #6293.

Summary of Changes

Boxes inner tonic::Status inside BigTableError::Rpc.

@brooksprumo brooksprumo self-assigned this Jun 17, 2025
@brooksprumo brooksprumo linked an issue Jun 17, 2025 that may be closed by this pull request
@brooksprumo brooksprumo marked this pull request as ready for review June 17, 2025 21:10
@brooksprumo brooksprumo requested a review from steviez June 17, 2025 21:10
@brooksprumo brooksprumo force-pushed the clippy/large-err/big-table branch from eb25f68 to 59ac835 Compare July 1, 2025 18:53
@brooksprumo
Copy link
Copy Markdown
Author

Rebased because there have been a bunch of commits to master.

Copy link
Copy Markdown

@steviez steviez left a comment

Choose a reason for hiding this comment

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

Technically a breaking change if someone is interacting with the error variants directly, but given that we're bumping the major to v3.0, I think we're cool with it.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.3%. Comparing base (af62b25) to head (59ac835).

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #6624     +/-   ##
=========================================
- Coverage    83.3%    83.3%   -0.1%     
=========================================
  Files         853      853             
  Lines      378132   378132             
=========================================
- Hits       315290   315260     -30     
- Misses      62842    62872     +30     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brooksprumo brooksprumo merged commit cec82c9 into anza-xyz:master Jul 1, 2025
41 checks passed
@brooksprumo brooksprumo deleted the clippy/large-err/big-table branch July 1, 2025 19: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.

New result_large_err clippy lint blocks upgrading Rust to 1.87.0

3 participants