From 445a92132deb1d87cc7ba1c0cd121efeb94ed385 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 23 May 2024 20:25:02 +0700 Subject: [PATCH] tiny_skia_render: Fix unused qualifications. --- examples/tiny_skia_render/src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/tiny_skia_render/src/main.rs b/examples/tiny_skia_render/src/main.rs index b40d83a6..99740567 100644 --- a/examples/tiny_skia_render/src/main.rs +++ b/examples/tiny_skia_render/src/main.rs @@ -7,8 +7,6 @@ //! Note: Emoji rendering is not currently implemented in this example. See the swash example //! if you need emoji rendering. -use std::path::PathBuf; - use parley::layout::{Alignment, GlyphRun, Layout}; use parley::style::{FontStack, FontWeight, StyleProperty}; use parley::{FontContext, LayoutContext}; @@ -93,7 +91,7 @@ fn main() { } // Write image to PNG file in examples/_output dir - let output_path: PathBuf = { + let output_path = { let path = std::path::PathBuf::from(file!()); let mut path = std::fs::canonicalize(path).unwrap(); path.pop(); @@ -128,7 +126,7 @@ fn render_glyph_run(glyph_run: &GlyphRun, pen: &mut TinySkiaPen<'_> let normalized_coords = run .normalized_coords() .iter() - .map(|coord| skrifa::instance::NormalizedCoord::from_bits(*coord)) + .map(|coord| NormalizedCoord::from_bits(*coord)) .collect::>(); // Get glyph outlines using Skrifa. This can be cached in production code.