[librsvg] cargo-clippy: marker.rs: Copy some enums, don't move them
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] cargo-clippy: marker.rs: Copy some enums, don't move them
- Date: Thu, 22 Feb 2018 19:55:32 +0000 (UTC)
commit e5cb58191e229f40fb4d97c99147a26e2c66e6ee
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Feb 22 13:38:00 2018 -0600
cargo-clippy: marker.rs: Copy some enums, don't move them
rust/src/marker.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 528b3410..88d3ea0a 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -567,7 +567,7 @@ fn bisect_angles (incoming: f64, outgoing: f64) -> f64 {
}
// From SVG's marker-start, marker-mid, marker-end properties
-#[derive(Debug, PartialEq)]
+#[derive(Debug, Copy, Clone, PartialEq)]
enum MarkerType {
Start,
Middle,
@@ -608,6 +608,7 @@ fn get_marker_name_from_drawing_ctx (draw_ctx: *const RsvgDrawingCtx,
}
}
+#[derive(Debug, Copy, Clone, PartialEq)]
enum MarkerEndpoint {
Start,
End
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]