From 64b42cd2f3f1da1d6a99dcdf90e6f7728ddca968 Mon Sep 17 00:00:00 2001 From: Lukas Lueg Date: Fri, 13 Jan 2017 08:15:06 +0100 Subject: Use the log-crate instead of printing to stdout --- font/src/darwin/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'font/src/darwin') diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index 1f925dea..757dd5f8 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -125,7 +125,7 @@ impl ::Rasterize for Rasterizer { type Err = Error; fn new(_dpi_x: f32, _dpi_y: f32, device_pixel_ratio: f32, use_thin_strokes: bool) -> Result { - println!("device_pixel_ratio: {}", device_pixel_ratio); + info!("device_pixel_ratio: {}", device_pixel_ratio); Ok(Rasterizer { fonts: HashMap::new(), keys: HashMap::new(), @@ -588,7 +588,7 @@ mod tests { fn get_descriptors_and_build_font() { let list = super::descriptors_for_family("Menlo"); assert!(!list.is_empty()); - println!("{:?}", list); + info!("{:?}", list); // Check to_font let fonts = list.iter() -- cgit v1.2.3-54-g00ecf