diff --git a/src/schema/document/mod.rs b/src/schema/document/mod.rs index b1e9f14f2..149fa3a7b 100644 --- a/src/schema/document/mod.rs +++ b/src/schema/document/mod.rs @@ -80,6 +80,7 @@ //! } //! //! /// Our custom iterator just helps us to avoid some messy generics. +//! #[allow(dead_code)] //! pub struct MyCustomIter<'a>(btree_map::Iter<'a, Field, serde_json::Value>); //! impl<'a> Iterator for MyCustomIter<'a> { //! // Here we can see our field-value pairs being produced by the iterator.