fix: Allow a clippy lint that is a bad suggestion

pull/24376/head
Carol (Nichols || Goulding) 2021-04-16 17:09:24 -04:00
parent 40decd0154
commit 78aa66d699
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ impl BlockData {
/// overwrites previous values. Therefore, in order to have "last write
/// wins" semantics it is important that the provided vector of blocks
/// is ordered by the wall-clock time the blocks were created.
#[allow(clippy::manual_flatten)] // https://github.com/rust-lang/rust-clippy/issues/6784
pub fn merge(mut blocks: Vec<Self>) -> Self {
if blocks.is_empty() {
panic!("merge called with zero blocks");