[librsvg/librsvg-2.46] angle: pass by value



commit c761e2a93171665bab73548aa81773477e697058
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 13 12:44:13 2019 +0200

    angle: pass by value

 rsvg_internals/src/angle.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/angle.rs b/rsvg_internals/src/angle.rs
index 4078b2cc..dc702bcc 100644
--- a/rsvg_internals/src/angle.rs
+++ b/rsvg_internals/src/angle.rs
@@ -27,7 +27,7 @@ impl Angle {
         }
     }
 
-    pub fn radians(&self) -> f64 {
+    pub fn radians(self) -> f64 {
         self.0
     }
 


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