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




commit e1df38325dcb203a502fccdf1b4f138849bc369a
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 c495c4cd4..2f5927df2 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]