aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/layout/inline.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs
index 8a323d744f4..3c0c0ccd0fe 100644
--- a/components/layout/inline.rs
+++ b/components/layout/inline.rs
@@ -743,8 +743,8 @@ impl InlineFragments {
}
/// Merges another set of inline fragments with this one.
- pub fn push_all(&mut self, fragments: InlineFragments) {
- self.fragments.extend(fragments.fragments.into_iter());
+ pub fn push_all(&mut self, mut other: InlineFragments) {
+ self.fragments.append(&mut other.fragments);
}
/// A convenience function to return the fragment at a given index.