-
-
Notifications
You must be signed in to change notification settings - Fork 344
audit uses of as_ref()
and remove those that are ambiguous
#1466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the heads-up! Indeed, it's not the first time and I can't promise it will be the last one after this one is fixed. As for Yanking temporarily gives some time to respond and like in this case, publish a patched release which will be picked up by the most recent I will let you know once the fix is available, so the latest version of |
Thanks sounds good! |
…impls (#1466) As `bstr` adds a new implementation of `AsRef`, the `as_ref()` call becomes ambiguous which will then break `gitoxide`. Now `as_ref()` is avoided in favor of a method that can't fail.
It looks like So with Once CI passes here I will publish the new versions and share them in this issue. |
Both |
Please feel free to close the issue once |
All righty, |
…impls (GitoxideLabs#1466) As `bstr` adds a new implementation of `AsRef`, the `as_ref()` call becomes ambiguous which will then break `gitoxide`. Now `as_ref()` is avoided in favor of a method that can't fail.
Adding a trait impl in
bstr 1.9.2
(which is yanked for now) causedgix-credentials
to fail to compile.The issue looks to be the result of using ambiguous
as_ref()
. That is, anas_ref()
whose inference relies on the fact that there is only one trait implementation to choose from. If new trait implementations are added, then inference fails and a compile error occurs.I think this has happened before with
gix
, although I don't remember the precise details. What do you think about doing an audit foras_ref()
usage? In general, I'd like to be able to add trait implementations tobstr
as they come up, but I also don't want to be breaking folks downstream of me. :-)The text was updated successfully, but these errors were encountered: