aboutsummaryrefslogtreecommitdiff
path: root/src/transform.rs
diff options
context:
space:
mode:
authorArne Dußin2020-11-10 19:14:53 +0100
committerArne Dußin2020-11-10 19:14:53 +0100
commit94b9d39bd32ced4435951dc7a61612c3ea826b87 (patch)
tree17a948c8127bfd5a36e9768ffc947b5f08356f4d /src/transform.rs
parent2315064b28627b1490016f3b45e8dee187ed9e05 (diff)
downloadgraf_karto-94b9d39bd32ced4435951dc7a61612c3ea826b87.tar.gz
graf_karto-94b9d39bd32ced4435951dc7a61612c3ea826b87.zip
Fix some style errors
Fixed the last warnings and ran clippy on the project. Fixed where appropriate and taught clippy otherwise. Now runs through clean.
Diffstat (limited to 'src/transform.rs')
-rw-r--r--src/transform.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transform.rs b/src/transform.rs
index 2e9ea0b..bd80bc1 100644
--- a/src/transform.rs
+++ b/src/transform.rs
@@ -126,3 +126,9 @@ impl Transform {
self.translation_px
}
}
+
+impl Default for Transform {
+ fn default() -> Self {
+ Self::new()
+ }
+}