[librsvg] angle: take bisect param by value



commit 7d54bf8ae69a7e9fd2931f9d3e0e178733f19997
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Jan 18 15:46:51 2020 +0100

    angle: take bisect param 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 ed647c9f..c624db32 100644
--- a/rsvg_internals/src/angle.rs
+++ b/rsvg_internals/src/angle.rs
@@ -33,7 +33,7 @@ impl Angle {
         self.0
     }
 
-    pub fn bisect(&self, other: Angle) -> Angle {
+    pub fn bisect(self, other: Angle) -> Angle {
         let half_delta = (other.0 - self.0) * 0.5;
 
         if FRAC_PI_2 < half_delta.abs() {


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