[librsvg/rustification] marker.rs: Remove superfluous parentheses
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] marker.rs: Remove superfluous parentheses
- Date: Thu, 10 Nov 2016 01:03:08 +0000 (UTC)
commit e483065586eb22f14d41053d1b342b6bece5a1f4
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Nov 9 18:52:30 2016 -0600
marker.rs: Remove superfluous parentheses
rust/src/marker.rs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 186ebe9..36b30fd 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -242,7 +242,7 @@ fn get_segment_directionalities (segment: &Segment) -> Option <(f64, f64, f64, f
fn find_incoming_directionality_backwards (segments: &Vec<Segment>, start_index: usize) -> (bool, f64, f64) {
/* "go backwards ... within the current subpath until ... segment which has directionality at its end
point" */
- for segment in (&segments[0 .. start_index + 1]).iter ().rev () {
+ for segment in segments[.. start_index + 1].iter ().rev () {
match *segment {
Segment::Degenerate { .. } => {
return (false, 0.0, 0.0); /* reached the beginning of the subpath as we ran into a
standalone point */
@@ -263,7 +263,7 @@ fn find_incoming_directionality_backwards (segments: &Vec<Segment>, start_index:
fn find_outgoing_directionality_forwards (segments: &Vec<Segment>, start_index: usize) -> (bool, f64, f64) {
/* "go forwards ... within the current subpath until ... segment which has directionality at its start
point" */
- for segment in &segments[start_index .. segments.len ()] {
+ for segment in &segments[start_index .. ] {
match *segment {
Segment::Degenerate { .. } => {
return (false, 0.0, 0.0); /* reached the end of a subpath as we ran into a standalone point
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]