Skip to content

Allow passing owned Vector to doc! #524

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

isabelatkinson
Copy link
Contributor

No description provided.

@@ -246,10 +246,10 @@ impl TryFrom<Binary> for Vector {
}
}

// Convenience impl to allow passing a Vector directly into the doc! macro. From<Vector> is already
// Convenience impl to allow passing a Vector directly into the doc! macro. From<&Vector> is already
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was backwards - the blanket impl is for &T when From<T> is implemented

@isabelatkinson isabelatkinson marked this pull request as ready for review March 25, 2025 22:25
@isabelatkinson isabelatkinson requested a review from abr-egn March 25, 2025 22:25
@isabelatkinson isabelatkinson merged commit 7029790 into mongodb:main Mar 26, 2025
11 checks passed
@isabelatkinson isabelatkinson deleted the vector-reference branch June 5, 2025 16:25
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