[librsvg: 5/5] text.rs: Prefix unused struct fields with _



commit 025b3aa050b84baa4655b1df79c08b98e482f4ec
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jan 11 20:01:00 2019 -0600

    text.rs: Prefix unused struct fields with _
    
    I'll use them later when fixing space normalization

 rsvg_internals/src/text.rs | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/rsvg_internals/src/text.rs b/rsvg_internals/src/text.rs
index 21884f22..74466b6c 100644
--- a/rsvg_internals/src/text.rs
+++ b/rsvg_internals/src/text.rs
@@ -69,13 +69,13 @@ struct Span {
     text: String,
     dx: Option<Length>,
     dy: Option<Length>,
-    depth: usize,
+    _depth: usize,
 }
 
 struct MeasuredSpan {
     values: ComputedValues,
     layout: pango::Layout,
-    layout_size: (f64, f64),
+    _layout_size: (f64, f64),
     advance: (f64, f64),
     dx: Option<Length>,
     dy: Option<Length>,
@@ -84,7 +84,7 @@ struct MeasuredSpan {
 struct PositionedSpan {
     layout: pango::Layout,
     values: ComputedValues,
-    position: (f64, f64),
+    _position: (f64, f64),
     rendered_position: (f64, f64),
 }
 
@@ -191,7 +191,7 @@ impl Span {
             text: text.to_string(),
             dx,
             dy,
-            depth,
+            _depth: depth,
         }
     }
 }
@@ -215,7 +215,7 @@ impl MeasuredSpan {
         MeasuredSpan {
             values,
             layout,
-            layout_size: (w, h),
+            _layout_size: (w, h),
             advance,
             dx: span.dx,
             dy: span.dy,
@@ -257,7 +257,7 @@ impl PositionedSpan {
         PositionedSpan {
             layout: measured.layout.clone(),
             values,
-            position: (x, y),
+            _position: (x, y),
             rendered_position: (render_x, render_y),
         }
     }


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