From 4bdbe0022b104542cd08d5086b746faa606ce864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 14 Oct 2022 18:11:42 +0300 Subject: [PATCH] examples: Fix compilation after pangocairo API changes --- examples/src/bin/overlay-composition.rs | 2 +- examples/src/bin/pango-cairo.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/bin/overlay-composition.rs b/examples/src/bin/overlay-composition.rs index 3f3f7c10e..d2b12c2a8 100644 --- a/examples/src/bin/overlay-composition.rs +++ b/examples/src/bin/overlay-composition.rs @@ -87,7 +87,7 @@ fn create_pipeline() -> Result { src.set_property_from_str("pattern", "ball"); // The PangoFontMap represents the set of fonts available for a particular rendering system. - let fontmap = pangocairo::FontMap::new().unwrap(); + let fontmap = pangocairo::FontMap::new(); // Create a new pango layouting context for the fontmap. let context = fontmap.create_context().unwrap(); // Create a pango layout object. This object is a string of text we want to layout. diff --git a/examples/src/bin/pango-cairo.rs b/examples/src/bin/pango-cairo.rs index ce3fb89e2..3a2e55f4e 100644 --- a/examples/src/bin/pango-cairo.rs +++ b/examples/src/bin/pango-cairo.rs @@ -88,7 +88,7 @@ fn create_pipeline() -> Result { src.set_property_from_str("pattern", "ball"); // The PangoFontMap represents the set of fonts available for a particular rendering system. - let fontmap = pangocairo::FontMap::new().unwrap(); + let fontmap = pangocairo::FontMap::new(); // Create a new pango layouting context for the fontmap. let context = fontmap.create_context().unwrap(); // Create a pango layout object. This object is a string of text we want to layout.