diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:21:35 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-04 19:21:35 +0200 |
| commit | f4460f8abd7dee1806cf59b4d3777581a6ed154a (patch) | |
| tree | 8e591d253a537a76f8c309e23b09bf7a9a762fd5 /src/library/font.rs | |
| parent | 0f7c70fd93db23ec866ae13aa2f146b7787afabf (diff) | |
Style nits 🎈
Diffstat (limited to 'src/library/font.rs')
| -rw-r--r-- | src/library/font.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/font.rs b/src/library/font.rs index 40d8d30b..cfda3beb 100644 --- a/src/library/font.rs +++ b/src/library/font.rs @@ -49,7 +49,7 @@ use crate::geom::Linear; /// ```typst /// [font: "My Serif", serif] /// ``` -pub async fn font(mut args: DictValue, ctx: &mut LayoutContext) -> Value { +pub async fn font(mut args: ValueDict, ctx: &mut LayoutContext) -> Value { let mut text = ctx.state.text.clone(); let mut updated_fallback = false; @@ -86,7 +86,7 @@ pub async fn font(mut args: DictValue, ctx: &mut LayoutContext) -> Value { text.variant.stretch = stretch; } - for (class, mut dict) in args.take_all_str::<DictValue>() { + for (class, mut dict) in args.take_all_str::<ValueDict>() { let fallback = dict .take_all_num_vals::<StringLike>() .map(|s| s.to_lowercase()) |
