diff --git a/util/src/kvdb.rs b/util/src/kvdb.rs index fa74553fb..2866925cb 100644 --- a/util/src/kvdb.rs +++ b/util/src/kvdb.rs @@ -55,7 +55,7 @@ pub struct DatabaseIterator<'a> { impl<'a> Iterator for DatabaseIterator<'a> { type Item = (Box<[u8]>, Box<[u8]>); - #[allow(type_complexity)] + #[cfg_attr(feature="dev", allow(type_complexity))] fn next(&mut self) -> Option<(Box<[u8]>, Box<[u8]>)> { self.iter.next() }