diff options
Diffstat (limited to 'src/text.rs')
| -rw-r--r-- | src/text.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.rs b/src/text.rs index dcad438..61bf5ca 100644 --- a/src/text.rs +++ b/src/text.rs @@ -60,7 +60,7 @@ impl ComputedText { pub fn new(text: &str, mut attr: Attributes) -> Self { let text = text.replace('\n', "\u{23CE}"); - let layout = PANGO_CTX.with(|ctx| pango::Layout::new(ctx)); + let layout = PANGO_CTX.with(pango::Layout::new); layout.set_font_description(Some(attr.font)); if attr.markup { layout.set_markup(&text); |
