Skip to content

Comments

Make Font::from_bytes take impl AsRef<[u8]>#116

Open
lunabunn wants to merge 1 commit intomooman219:masterfrom
lunabunn:from-bytes-asref
Open

Make Font::from_bytes take impl AsRef<[u8]>#116
lunabunn wants to merge 1 commit intomooman219:masterfrom
lunabunn:from-bytes-asref

Conversation

@lunabunn
Copy link
Contributor

@lunabunn lunabunn commented Jun 4, 2022

This is an API-breaking change, so I'm not sure if it's really worth it, but I think impl AsRef<[u8]> is a bit more conventional signature for taking byte slices than is T: Deref<Target=[u8]>.

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.

1 participant