[librsvg: 27/43] angle: pass by value



commit 79353c18f9d50d1db33736db8a4218d8ad2d586e
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]