Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements to OwnedBytes #2134

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Minor improvements to OwnedBytes #2134

merged 1 commit into from
Jul 24, 2023

Conversation

adamreichold
Copy link
Collaborator

This makes it obvious where the StableDerefTrait is invoked and avoids transmute when only a lifetime needs to be extended. Furthermore, it makes use of slice::split_at where that seemed appropriate.

This makes it obvious where the `StableDerefTrait` is invoked and avoids
`transmute` when only a lifetime needs to be extended. Furthermore, it makes use
of `slice::split_at` where that seemed appropriate.
@codecov-commenter
Copy link

Codecov Report

Merging #2134 (c2f56d3) into main (42acd33) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main    #2134   +/-   ##
=======================================
  Coverage   94.39%   94.39%           
=======================================
  Files         319      319           
  Lines       60769    60762    -7     
=======================================
- Hits        57362    57356    -6     
+ Misses       3407     3406    -1     
Impacted Files Coverage Δ
ownedbytes/src/lib.rs 96.83% <100.00%> (-0.10%) ⬇️

... and 1 file with indirect coverage changes

@fulmicoton fulmicoton merged commit ccc0335 into main Jul 24, 2023
@fulmicoton fulmicoton deleted the ownedbytes branch July 24, 2023 08:06
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.

3 participants