Skip to content

Commit 5890071

Browse files
authored
fix: export RawElement type (#461)
1 parent c89e137 commit 5890071

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: src/raw/iter.rs

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ impl<'a> TryInto<Bson> for RawElement<'a> {
144144
}
145145
}
146146

147+
#[allow(clippy::len_without_is_empty)]
147148
impl<'a> RawElement<'a> {
148149
pub fn len(&self) -> usize {
149150
self.size

Diff for: src/raw/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ pub use self::{
142142
document::RawDocument,
143143
document_buf::RawDocumentBuf,
144144
error::{Error, ErrorKind, Result, ValueAccessError, ValueAccessErrorKind, ValueAccessResult},
145-
iter::RawIter,
145+
iter::{RawElement, RawIter},
146146
};
147147

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

0 commit comments

Comments
 (0)