We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RawElement::len
RawElement::size
1 parent 2b69360 commit 5f54ac5Copy full SHA for 5f54ac5
src/raw/iter.rs
@@ -143,7 +143,6 @@ impl TryInto<Bson> for RawElement<'_> {
143
}
144
145
146
-#[allow(clippy::len_without_is_empty)]
147
impl<'a> RawElement<'a> {
148
pub(crate) fn toplevel(bytes: &'a [u8]) -> Result<Self> {
149
let doc = RawDocument::from_bytes(bytes)?;
@@ -155,7 +154,8 @@ impl<'a> RawElement<'a> {
155
154
size: doc.as_bytes().len(),
156
})
157
158
- pub fn len(&self) -> usize {
+
+ pub fn size(&self) -> usize {
159
self.size
160
161
0 commit comments