diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-12-14 04:19:29 +0530 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-12-27 14:48:36 +0100 |
commit | c7dfb1d24b5cb802c6db01f410bef73c5dbb324a (patch) | |
tree | ebfb3be7eb50c4901e8bffb628be539af3663f41 /components/layout/construct.rs | |
parent | e9d1740e19a82c5c91cc196c7c00ba57c56ec971 (diff) | |
download | servo-c7dfb1d24b5cb802c6db01f410bef73c5dbb324a.tar.gz servo-c7dfb1d24b5cb802c6db01f410bef73c5dbb324a.zip |
layout: to_string() -> into_string()
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r-- | components/layout/construct.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index a5fef43df0b..c8efb792886 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -451,7 +451,7 @@ impl<'a> FlowConstructor<'a> { // Add whitespace results. They will be stripped out later on when // between block elements, and retained when between inline elements. let fragment_info = - SpecificFragmentInfo::UnscannedText(UnscannedTextFragmentInfo::from_text(" ".to_string())); + SpecificFragmentInfo::UnscannedText(UnscannedTextFragmentInfo::from_text(" ".into_string())); let fragment = Fragment::from_opaque_node_and_style(whitespace_node, whitespace_style, whitespace_damage, @@ -648,7 +648,7 @@ impl<'a> FlowConstructor<'a> { whitespace_damage)) => { // Instantiate the whitespace fragment. let fragment_info = SpecificFragmentInfo::UnscannedText(UnscannedTextFragmentInfo::from_text( - " ".to_string())); + " ".into_string())); let fragment = Fragment::from_opaque_node_and_style(whitespace_node, whitespace_style, whitespace_damage, @@ -959,7 +959,7 @@ impl<'a> FlowConstructor<'a> { .list_style_type) { None => None, Some(text) => { - let text = text.to_string(); + let text = text.into_string(); let mut unscanned_marker_fragments = DList::new(); unscanned_marker_fragments.push_back(Fragment::new_from_specific_info( node, |