From 3037f2b984c330fc5c203e45d6b3059fb6d02605 Mon Sep 17 00:00:00 2001 From: exoticus <56480961+exoticus@users.noreply.github.com> Date: Fri, 17 Apr 2020 00:52:16 +0200 Subject: [PATCH] some formatting --- src/renderer/caching_shaper.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/renderer/caching_shaper.rs b/src/renderer/caching_shaper.rs index 3054723..b7abf3e 100644 --- a/src/renderer/caching_shaper.rs +++ b/src/renderer/caching_shaper.rs @@ -1,17 +1,15 @@ -use std::collections::HashMap; - +use cfg_if::cfg_if as define; use font_kit::{ font::Font, metrics::Metrics, properties::{Properties, Stretch, Style, Weight}, source::SystemSource, }; +use log::{trace, warn}; use lru::LruCache; use skribo::{FontCollection, FontFamily, FontRef as SkriboFont, LayoutSession, TextStyle}; use skulpin::skia_safe::{Data, Font as SkiaFont, TextBlob, TextBlobBuilder, Typeface}; - -use cfg_if::cfg_if as define; -use log::{trace, warn}; +use std::collections::HashMap; const STANDARD_CHARACTER_STRING: &str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";