From 93eaafb236bba73cd72c8cd142279366b8afa0be Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 5 Oct 2020 16:06:25 +0200 Subject: =?UTF-8?q?Tidy=20up=20align=20function=20=F0=9F=A7=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/font.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/library/font.rs') diff --git a/src/library/font.rs b/src/library/font.rs index 60380def..21fb2d13 100644 --- a/src/library/font.rs +++ b/src/library/font.rs @@ -51,7 +51,7 @@ use crate::prelude::*; /// ``` pub async fn font(mut args: Args, ctx: &mut LayoutContext) -> Value { let mut text = ctx.state.text.clone(); - let mut needs_flatten = false; + let mut needs_flattening = false; let body = args.find::(); @@ -67,7 +67,7 @@ pub async fn font(mut args: Args, ctx: &mut LayoutContext) -> Value { let list: Vec<_> = args.find_all::().map(|s| s.to_lowercase()).collect(); if !list.is_empty() { text.fallback.list = list; - needs_flatten = true; + needs_flattening = true; } if let Some(style) = args.get::<_, FontStyle>(ctx, "style") { @@ -89,12 +89,12 @@ pub async fn font(mut args: Args, ctx: &mut LayoutContext) -> Value { .collect(); text.fallback.update_class_list(class, fallback); - needs_flatten = true; + needs_flattening = true; } args.done(ctx); - if needs_flatten { + if needs_flattening { text.fallback.flatten(); } -- cgit v1.2.3