Skip to content
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

Add some AsRef impls #53

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Add some AsRef impls #53

merged 1 commit into from
Jul 19, 2024

Conversation

GrigorenkoPV
Copy link
Contributor

Sadly, you can't just replace

impl<T: ?Sized> AsRef<T> for Intern<T>

with

impl<T: ?Sized, U: ?Sized> AsRef<U> for Intern<T>
where
   T: AsRef<U>

because there is no impl<T: ?Sized> AsRef<T> for T in std.

But we can at least manually mirror some of the implementations from std.

@droundy droundy merged commit e521f1c into droundy:master Jul 19, 2024
7 of 8 checks passed
@GrigorenkoPV GrigorenkoPV deleted the as_ref branch July 19, 2024 19:28
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.

2 participants