diff --git a/components/gfx/paint_task.rs b/components/gfx/paint_task.rs index 42d629cd82e..53cae38df18 100644 --- a/components/gfx/paint_task.rs +++ b/components/gfx/paint_task.rs @@ -587,8 +587,8 @@ impl WorkerThread { let mut buffer = layer_buffer.unwrap(); draw_target.snapshot().get_data_surface().with_data(|data| { buffer.native_surface.upload(native_graphics_context!(self), data); - debug!("painting worker thread uploading to native surface {:d}", - buffer.native_surface.get_id() as int); + debug!("painting worker thread uploading to native surface {}", + buffer.native_surface.get_id()); }); return buffer } diff --git a/components/gfx/platform/freetype/font.rs b/components/gfx/platform/freetype/font.rs index 5896a335585..109d4754637 100644 --- a/components/gfx/platform/freetype/font.rs +++ b/components/gfx/platform/freetype/font.rs @@ -255,7 +255,7 @@ impl FontHandleMethods for FontHandle { line_gap: height, }; - debug!("Font metrics (@{:f} pt): {}", geometry::to_pt(em_size), metrics); + debug!("Font metrics (@{} pt): {}", geometry::to_pt(em_size), metrics); return metrics; } diff --git a/components/gfx/text/shaping/harfbuzz.rs b/components/gfx/text/shaping/harfbuzz.rs index 4cf0575dbee..6e10384615b 100644 --- a/components/gfx/text/shaping/harfbuzz.rs +++ b/components/gfx/text/shaping/harfbuzz.rs @@ -307,7 +307,7 @@ impl Shaper { debug!("text: {}", text); debug!("(char idx): char->(glyph index):"); for (i, ch) in text.char_indices() { - debug!("{}: {} --> {:d}", i, ch, *byte_to_glyph.get(i).unwrap() as int); + debug!("{}: {} --> {}", i, ch, byte_to_glyph[i]); } // some helpers