(&self, bytes: &[u8])
| 85 | } |
| 86 | |
| 87 | fn push_tail(&self, bytes: &[u8]) { |
| 88 | let Ok(mut state) = self.inner.lock() else { |
| 89 | return; |
| 90 | }; |
| 91 | for byte in bytes { |
| 92 | state.bytes.push_back(*byte); |
| 93 | while state.bytes.len() > self.limit { |
| 94 | state.bytes.pop_front(); |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | #[cfg(feature = "template-runner")] |
no test coverage detected