[librsvg/bilelmoussaoui/new-gtk-rs-stack: 35/36] tests: fix broken API usage




commit e44ff6f281188302f7033418536218aae965d488
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue Dec 7 21:02:54 2021 +0100

    tests: fix broken API usage

 tests/src/bugs.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/tests/src/bugs.rs b/tests/src/bugs.rs
index c495c4cd..2f5927df 100644
--- a/tests/src/bugs.rs
+++ b/tests/src/bugs.rs
@@ -498,7 +498,8 @@ fn can_draw_to_non_image_surface() {
         height: 200.0,
     };
 
-    let output = cairo::RecordingSurface::create(cairo::Content::ColorAlpha, viewport).unwrap();
+    let output =
+        cairo::RecordingSurface::create(cairo::Content::ColorAlpha, Some(viewport)).unwrap();
 
     let cr = cairo::Context::new(&output).expect("Failed to create a cairo context");
     renderer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]