From 5890071b554e3e7fad54c1d113a58b81f8034ff8 Mon Sep 17 00:00:00 2001 From: Sam Kleinman Date: Mon, 4 Mar 2024 10:34:19 -0500 Subject: [PATCH] fix: export RawElement type (#461) --- src/raw/iter.rs | 1 + src/raw/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/raw/iter.rs b/src/raw/iter.rs index 1208b7ee..9180df7a 100644 --- a/src/raw/iter.rs +++ b/src/raw/iter.rs @@ -144,6 +144,7 @@ impl<'a> TryInto for RawElement<'a> { } } +#[allow(clippy::len_without_is_empty)] impl<'a> RawElement<'a> { pub fn len(&self) -> usize { self.size diff --git a/src/raw/mod.rs b/src/raw/mod.rs index 56c6e130..8a503634 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -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.