Skip to content

impl<'a> From<&'a String> for NameOrId<'a>

Added From<&'a String> impl for NameOrId<'a>.

I am using a lot of functions that accept a parameter T: Into<NameOrId<'a>> and keep having to use &*my_string everywhere when it could use &my_string. Just a nitpick, let me know if the PR is alright though.

Edited by Teddy Byron

Merge request reports