diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-01-01 21:49:19 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-01-02 19:04:18 +0100 |
commit | b51e83819dfc2fded3a10744b353338f75ccae4d (patch) | |
tree | 1edb2c5d81a53ef4e8d5717a2440599d7a3e0f53 /components/layout | |
parent | 141b5d038fad3c0c44a6f1b309b8ca9edea54580 (diff) | |
download | servo-b51e83819dfc2fded3a10744b353338f75ccae4d.tar.gz servo-b51e83819dfc2fded3a10744b353338f75ccae4d.zip |
Fix obsolete format traits.
They are to be removed from the language in the next rust upgrade.
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/inline.rs | 2 | ||||
-rw-r--r-- | components/layout/layout_task.rs | 2 | ||||
-rw-r--r-- | components/layout/text.rs | 2 | ||||
-rw-r--r-- | components/layout/wrapper.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index fdea1dcdcfa..2230fb3e823 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -1237,7 +1237,7 @@ impl Flow for InlineFlow { fn build_display_list(&mut self, layout_context: &LayoutContext) { // TODO(#228): Once we form lines and have their cached bounds, we can be smarter and // not recurse on a line if nothing in it can intersect the dirty region. - debug!("Flow: building display list for {:u} inline fragments", self.fragments.len()); + debug!("Flow: building display list for {} inline fragments", self.fragments.len()); let mut display_list = box DisplayList::new(); for fragment in self.fragments.fragments.iter_mut() { diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 2eeeb31409f..3082d20924c 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -715,7 +715,7 @@ impl LayoutTask { mem::transmute(&mut node) }; - debug!("layout: received layout request for: {:s}", data.url.serialize()); + debug!("layout: received layout request for: {}", data.url.serialize()); debug!("layout: parsed Node tree"); if log_enabled!(log::DEBUG) { node.dump(); diff --git a/components/layout/text.rs b/components/layout/text.rs index ab53aa9a7f9..ea79541bde0 100644 --- a/components/layout/text.rs +++ b/components/layout/text.rs @@ -41,7 +41,7 @@ impl TextRunScanner { pub fn scan_for_runs(&mut self, font_context: &mut FontContext, mut fragments: DList<Fragment>) -> InlineFragments { - debug!("TextRunScanner: scanning {:u} fragments for text runs...", fragments.len()); + debug!("TextRunScanner: scanning {} fragments for text runs...", fragments.len()); // FIXME(pcwalton): We want to be sure not to allocate multiple times, since this is a // performance-critical spot, but this may overestimate and allocate too much memory. diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 448b4c9e6c9..3d1b2ba69ff 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -219,7 +219,7 @@ impl<'ln> LayoutNode<'ln> { } s.push_str(self.debug_str().as_slice()); - println!("{:s}", s); + println!("{}", s); for kid in self.children() { kid.dump_indent(indent + 1); |