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.