[librsvg: 24/45] CairoContextState: suppress a warning until we use this for real outside the tests




commit 5341853330ccab1438b32b59edaf856dfe81a1b2
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Aug 22 20:52:11 2022 -0500

    CairoContextState: suppress a warning until we use this for real outside the tests
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/731>

 src/log.rs | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/log.rs b/src/log.rs
index 4505e9737..d72924fb7 100644
--- a/src/log.rs
+++ b/src/log.rs
@@ -45,6 +45,7 @@ struct CairoContextState {
 }
 
 impl CairoContextState {
+    #[cfg(test)]
     fn new(cr: &cairo::Context) -> Self {
         let surface_type = cr.target().type_();
         let matrix = cr.matrix();


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