Skip to content

fix(storage): ReadObject cloneable without cloneable stub#3780

Merged
dbolduc merged 1 commit intogoogleapis:mainfrom
mincrmatt12:fix/readobject-trait-bound
Nov 13, 2025
Merged

fix(storage): ReadObject cloneable without cloneable stub#3780
dbolduc merged 1 commit intogoogleapis:mainfrom
mincrmatt12:fix/readobject-trait-bound

Conversation

@mincrmatt12
Copy link
Copy Markdown
Contributor

Manually implement Clone on ReadObject to avoid the automatic S: Clone bound that #[derive(Clone)] would otherwise add - the stub is held with an Arc, so the bound is unnecessary and restrictive.

Manually implement `Clone` on `ReadObject` to avoid the automatic
`S: Clone` bound that `#[derive(Clone)]` would otherwise add - the
stub is held with an `Arc`, so the bound is unnecessary and restrictive.
@mincrmatt12 mincrmatt12 requested a review from a team November 12, 2025 18:05
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Nov 12, 2025
Copy link
Copy Markdown
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@dbolduc
Copy link
Copy Markdown
Member

dbolduc commented Nov 12, 2025

/gcbrun

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.17%. Comparing base (0899571) to head (dfbb6ea).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
src/storage/src/storage/read_object.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3780      +/-   ##
==========================================
- Coverage   96.22%   96.17%   -0.06%     
==========================================
  Files         145      145              
  Lines        5563     5567       +4     
==========================================
+ Hits         5353     5354       +1     
- Misses        210      213       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbolduc dbolduc merged commit 9537c02 into googleapis:main Nov 13, 2025
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants