rust-x-bindings / xkbcommon-rs

bindings and safe wrappers for libxkbcommon
MIT License
20 stars 24 forks source link

Allow ?Sized types with Borrow<str> #4

Closed elinorbgr closed 7 years ago

elinorbgr commented 7 years ago

Hi,

This PR adds a ?Sized bound to functions that take &S where S: Borrow<str> arguments.

This allows to call them with S = str: give as argument string literals or &strs, without needing an other level of reference.

rtbo commented 7 years ago

Thanks!