[librsvg/rustification] marker.rs: Remove temporary variables in tests
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/rustification] marker.rs: Remove temporary variables in tests
- Date: Thu, 27 Oct 2016 02:11:03 +0000 (UTC)
commit a0693ea14d7b4e288026c7f885d940f8ad797e19
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Oct 26 20:58:06 2016 -0500
marker.rs: Remove temporary variables in tests
rust/src/marker.rs | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 8e402ce..862d6cf 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -232,8 +232,7 @@ mod tests {
cr.line_to (20.0, 10.0);
cr.line_to (20.0, 20.0);
- let path = cr.copy_path ();
- path
+ cr.copy_path ()
}
#[test]
@@ -260,8 +259,7 @@ mod tests {
cr.curve_to (50.0, 35.0, 60.0, 60.0, 70.0, 70.0);
cr.line_to (80.0, 90.0);
- let path = cr.copy_path ();
- path
+ cr.copy_path ()
}
#[test]
@@ -288,8 +286,7 @@ mod tests {
cr.line_to (20.0, 20.0);
cr.close_path ();
- let path = cr.copy_path ();
- path
+ cr.copy_path ()
}
#[test]
@@ -321,8 +318,7 @@ mod tests {
cr.line_to (80.0, 90.0);
cr.close_path ();
- let path = cr.copy_path ();
- path
+ cr.copy_path ()
}
#[test]
@@ -355,8 +351,7 @@ mod tests {
cr.line_to (40.0, 30.0);
- let path = cr.copy_path ();
- path
+ cr.copy_path ()
}
#[test]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]