diff options
| author | Arne Dußin | 2021-01-06 22:56:37 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-01-06 22:56:37 +0100 |
| commit | fa1afb6be3ba2d521eb0791edc0bb8e631a85327 (patch) | |
| tree | e0a365444784efaaeb1eea6373b34559b6d57fbc /src/tool/selection_tool.rs | |
| parent | 1c81d7c70fe891e6ded49d49d6a09f04ce74dd6e (diff) | |
| parent | 30b23db9e86fdf72a4e7de72213df274ce19123e (diff) | |
| download | graf_karto-fa1afb6be3ba2d521eb0791edc0bb8e631a85327.tar.gz graf_karto-fa1afb6be3ba2d521eb0791edc0bb8e631a85327.zip | |
Merge branch 'master' into snapping
Diffstat (limited to 'src/tool/selection_tool.rs')
| -rw-r--r-- | src/tool/selection_tool.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool/selection_tool.rs b/src/tool/selection_tool.rs index c790734..4850a28 100644 --- a/src/tool/selection_tool.rs +++ b/src/tool/selection_tool.rs @@ -9,7 +9,7 @@ use super::Tool; use crate::colours::DEFAULT_COLOURS; use crate::map::Map; -use crate::math::{Rect, Surface, Vec2}; +use crate::math::{ExactSurface, Rect, Vec2}; use crate::transform::Transform; use raylib::core::drawing::{RaylibDraw, RaylibDrawHandle}; @@ -21,6 +21,7 @@ pub struct SelectionTool { impl SelectionTool { /// Create a new selection tool. There should be only one such tool per program instance and it /// should be created in the editor. + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self { selection_rect: None, |
