Skip to content

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
@joshlf joshlf force-pushed the from-bytes-methods branch from 552635b to a8e4c02 Compare May 17, 2024 05:06
...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 force-pushed the from-bytes-methods branch from a8e4c02 to 8d74855 Compare May 17, 2024 05:10
@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
@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.

3 participants