Skip to content

Conversation

@isabelatkinson
Copy link
Contributor

@isabelatkinson isabelatkinson commented Jul 23, 2025

@isabelatkinson isabelatkinson changed the title RUST-998 Enable missing_docs lint RUST-998 / RUST-2244 Documentation improvements Jul 23, 2025
}

impl<'a> TryInto<RawBsonRef<'a>> for RawElement<'a> {
impl<'a> TryFrom<RawElement<'a>> for RawBsonRef<'a> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@isabelatkinson isabelatkinson marked this pull request as ready for review July 23, 2025 21:03
@isabelatkinson isabelatkinson requested a review from a team as a code owner July 23, 2025 21:03
@isabelatkinson isabelatkinson requested a review from abr-egn July 23, 2025 21:03
}

/// Constructs a new [`RawDocumentBuf`], validating _only_ the
/// following invariants:
Copy link
Contributor

Choose a reason for hiding this comment

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

I might be less precise here ("validating only the outer envelope of the buffer" or some such) to give room for the implementation to make minor changes without having to publicize them, but definitely a reasonable judgement call either way :)

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 is copied from the docs of the method above - I'm going to leave as-is as I expect this logic to be fairly stable, and I think it's helpful for users to know exactly what is and isn't being validated.

@isabelatkinson isabelatkinson merged commit 2e4f285 into mongodb:main Jul 24, 2025
11 checks passed
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