Skip to content

Conversation

@joseph-gio
Copy link

@joseph-gio joseph-gio commented Jul 22, 2023

Utf8String::as_bytes currently has the lifetime of a reference to a reference, which makes it more restrictive than it needs to be. Since immutable references are Copy, we can return a reference with the original lifetime.

@joseph-gio joseph-gio changed the title Add Utf8StringRef::into_bytes_ref Extend the lifetime of Utf8String::as_bytes Jan 6, 2024
@joseph-gio joseph-gio closed this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant