I've just got very surprised to find out that my_os_string == "foo" doesn't compile, but my_os_string == *"foo" does. After some investigation, I found that impl<'a> PartialEq<&'a str> for OsString is missing. Similar impl is present for String though.
I believe it'd be nice to implement it.
I've just got very surprised to find out that
my_os_string == "foo"doesn't compile, butmy_os_string == *"foo"does. After some investigation, I found thatimpl<'a> PartialEq<&'a str> for OsStringis missing. Similar impl is present forStringthough.I believe it'd be nice to implement it.