Skip to content

Upgrading from 0.7 to 0.8: Ref::new_slice gone? #1974

Answered by joshlf
ChristopherRabotin asked this question in Q&A
Discussion options

You must be logged in to vote

Given a Ref<[T]>, both Ref::from_bytes and Ref::into_ref will work as expected - you no longer need to special-case slices either during construction or when converting to a vanilla reference.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChristopherRabotin
Comment options

Answer selected by ChristopherRabotin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants