uuid-rs / uuid

Generate and parse UUIDs.

Home Page:https://www.crates.io/crates/uuid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TryFrom<Vec<u8>> makes an unnecessary copy

pjenvey opened this issue · comments

As Vec<u8> can be safely converted to Bytes instead of copying its contents.

Closing based on #734 (comment)

If we can measure the impact of the current implementation against the new one then I'd be happy to revisit this.