Преглед на файлове

Ignore a clippy warning of type `option_option`

Johannes Hofmann преди 6 години
родител
ревизия
fc3397e34a
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3
    0
      src/block.rs

+ 3
- 0
src/block.rs Целия файл

@@ -152,7 +152,10 @@ impl<'a> BlockElementsIter<'a> {
152 152
         }
153 153
     }
154 154
 
155
+    /// Performs an internal iteration step. Returns `None` until there is a value for the iterator to
156
+    /// return. Returns `Some(None)` to end the iteration.
155 157
     #[inline]
158
+    #[allow(clippy::option_option)]
156 159
     fn step(&mut self) -> Option<Option<Element<'a>>> {
157 160
         match self.state {
158 161
             ElementsIterState::Group => {