Skip to content

Commit

Permalink
fix: export RawElement type (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
tychoish authored Mar 4, 2024
1 parent c89e137 commit 5890071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/raw/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ impl<'a> TryInto<Bson> for RawElement<'a> {
}
}

#[allow(clippy::len_without_is_empty)]
impl<'a> RawElement<'a> {
pub fn len(&self) -> usize {
self.size
Expand Down
2 changes: 1 addition & 1 deletion src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub use self::{
document::RawDocument,
document_buf::RawDocumentBuf,
error::{Error, ErrorKind, Result, ValueAccessError, ValueAccessErrorKind, ValueAccessResult},
iter::RawIter,
iter::{RawElement, RawIter},
};

/// Special newtype name indicating that the type being (de)serialized is a raw BSON document.
Expand Down

0 comments on commit 5890071

Please sign in to comment.