diff --git a/src/block.rs b/src/block.rs index ba4c95ab3a..b375132ef7 100644 --- a/src/block.rs +++ b/src/block.rs @@ -75,9 +75,8 @@ impl Block { pub fn splice + Clone>(&mut self, range: R, other: Self) { #[cfg(feature = "span")] - self.span_info - .splice(range.clone(), other.span_info.into_iter()); - self.body.splice(range, other.body.into_iter()); + self.span_info.splice(range.clone(), other.span_info); + self.body.splice(range, other.body); } pub fn span_iter(&self) -> impl Iterator { #[cfg(feature = "span")]