Remove unneeded clones and add some comments.

This commit is contained in:
Glenn Watson 2014-09-26 19:26:55 +10:00
parent 26cf00ef4e
commit 71758643dc
4 changed files with 10 additions and 3 deletions

View file

@ -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)
}