aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-09-26 19:26:55 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2014-09-27 13:51:10 +1000
commit71758643dcf16c7047432785ef4446867a051e91 (patch)
tree2497421715cc339fb817952b32c6d3205aa19f48 /components/layout/construct.rs
parent26cf00ef4e401c276821258d9c7f10a6dbb80ab5 (diff)
downloadservo-71758643dcf16c7047432785ef4446867a051e91.tar.gz
servo-71758643dcf16c7047432785ef4446867a051e91.zip
Remove unneeded clones and add some comments.
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 6478bc64d21..3d023c009f2 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -419,7 +419,7 @@ impl<'a> FlowConstructor<'a> {
// between block elements, and retained when between inline elements.
let fragment_info = UnscannedTextFragment(UnscannedTextFragmentInfo::from_text(" ".to_string()));
let mut fragment = Fragment::from_opaque_node_and_style(whitespace_node,
- whitespace_style.clone(),
+ whitespace_style,
fragment_info);
inline_fragment_accumulator.fragments.push(&mut fragment);
}
@@ -583,7 +583,7 @@ impl<'a> FlowConstructor<'a> {
// Instantiate the whitespace fragment.
let fragment_info = UnscannedTextFragment(UnscannedTextFragmentInfo::from_text(" ".to_string()));
let mut fragment = Fragment::from_opaque_node_and_style(whitespace_node,
- whitespace_style.clone(),
+ whitespace_style,
fragment_info);
fragment_accumulator.fragments.push(&mut fragment)
}