diff --git a/examples/src/bin/overlay-composition.rs b/examples/src/bin/overlay-composition.rs index d2b12c2a8..103e30f84 100644 --- a/examples/src/bin/overlay-composition.rs +++ b/examples/src/bin/overlay-composition.rs @@ -89,7 +89,7 @@ fn create_pipeline() -> Result { // The PangoFontMap represents the set of fonts available for a particular rendering system. let fontmap = pangocairo::FontMap::new(); // Create a new pango layouting context for the fontmap. - let context = fontmap.create_context().unwrap(); + let context = fontmap.create_context(); // Create a pango layout object. This object is a string of text we want to layout. // It is wrapped in a LayoutWrapper (defined above) to be able to send it across threads. let layout = LayoutWrapper(pango::Layout::new(&context)); diff --git a/examples/src/bin/pango-cairo.rs b/examples/src/bin/pango-cairo.rs index 3a2e55f4e..81badbced 100644 --- a/examples/src/bin/pango-cairo.rs +++ b/examples/src/bin/pango-cairo.rs @@ -90,7 +90,7 @@ fn create_pipeline() -> Result { // The PangoFontMap represents the set of fonts available for a particular rendering system. let fontmap = pangocairo::FontMap::new(); // Create a new pango layouting context for the fontmap. - let context = fontmap.create_context().unwrap(); + let context = fontmap.create_context(); // Create a pango layout object. This object is a string of text we want to layout. // It is wrapped in a LayoutWrapper (defined above) to be able to send it across threads. let layout = LayoutWrapper(pango::Layout::new(&context));