aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/inline.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-03-18 21:39:49 -0600
committerbors-servo <metajack+bors@gmail.com>2015-03-18 21:39:49 -0600
commit646f82147946c3221a6de0e575b4750dc61d5610 (patch)
tree37d7fca799129352e60d5d240c7ae9f7cd3bfb2d /components/layout/inline.rs
parent0b1c2a1798f84f50778bc54bce23e5a606319a4e (diff)
parent94a7563aea56ac560d5b0cb0afef1418d242a646 (diff)
downloadservo-646f82147946c3221a6de0e575b4750dc61d5610.tar.gz
servo-646f82147946c3221a6de0e575b4750dc61d5610.zip
auto merge of #5268 : mbrubeck/servo/append, r=jdm
The new `Vec::append` method is clearer and potentially faster.
Diffstat (limited to 'components/layout/inline.rs')
-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.