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

Rename FromBytes::ref_from[_with_elems] #1278

Merged
merged 1 commit into from
May 17, 2024
Merged

Rename FromBytes::ref_from[_with_elems] #1278

merged 1 commit into from
May 17, 2024

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented May 17, 2024

...to ref_from_bytes[_with_elems]. This brings the names in line with the Ref methods of the same names, and avoids the awkward name ref_from_with_elems.

Similarly, rename Ref::unaligned_from to unaligned_from_bytes. We had already renamed unaligned_from_with_elems to unaligned_from_bytes_with_elems.

Makes progress on #871

@joshlf joshlf requested a review from jswrenn May 17, 2024 03:50
@joshlf joshlf enabled auto-merge May 17, 2024 03:50
@joshlf joshlf mentioned this pull request May 17, 2024
13 tasks
...to `ref_from_bytes[_with_elems]`. This brings the names in line with
the `Ref` methods of the same names, and avoids the awkward name
`ref_from_with_elems`.

Similarly, rename `Ref::unaligned_from` to `unaligned_from_bytes`. We
had already renamed `unaligned_from_with_elems` to
`unaligned_from_bytes_with_elems`.

Makes progress on #871
@joshlf joshlf added this pull request to the merge queue May 17, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 88.22%. Comparing base (27699bb) to head (8d74855).

Files Patch % Lines
src/lib.rs 61.53% 5 Missing ⚠️
src/deprecated.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1278      +/-   ##
==========================================
- Coverage   88.27%   88.22%   -0.05%     
==========================================
  Files          14       14              
  Lines        5125     5131       +6     
==========================================
+ Hits         4524     4527       +3     
- Misses        601      604       +3     

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

Merged via the queue into main with commit 74de81d May 17, 2024
210 checks passed
@joshlf joshlf deleted the from-bytes-methods branch May 17, 2024 05: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.

None yet

3 participants