Skip to content

Remove needless Clone bounds on Box/Vec conversions#209

Merged
tarcieri merged 1 commit intomasterfrom
remove-clone-bounds-on-heap-types-add-tests
Apr 6, 2026
Merged

Remove needless Clone bounds on Box/Vec conversions#209
tarcieri merged 1 commit intomasterfrom
remove-clone-bounds-on-heap-types-add-tests

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Apr 6, 2026

This changes the TryFrom impls for Array which convert from an owned boxed slice or Vec into an Array to not require Clone bounds, because we can move the owned data into the array.

Also adds tests.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.69%. Comparing base (deb3e92) to head (3443a95).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #209      +/-   ##
==========================================
+ Coverage   94.60%   95.69%   +1.09%     
==========================================
  Files           7        7              
  Lines         556      558       +2     
==========================================
+ Hits          526      534       +8     
+ Misses         30       24       -6     

☔ 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.

This changes the `TryFrom` impls for `Array` which convert from an owned
boxed slice or `Vec` into an `Array` to not require `Clone` bounds,
because we can move the owned data into the array.

Also adds tests.
@tarcieri tarcieri force-pushed the remove-clone-bounds-on-heap-types-add-tests branch from e19a543 to 3443a95 Compare April 6, 2026 14:51
@tarcieri tarcieri merged commit cc6fe6d into master Apr 6, 2026
16 checks passed
@tarcieri tarcieri deleted the remove-clone-bounds-on-heap-types-add-tests branch April 6, 2026 14:52
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.

1 participant