diff options
| author | Arne Dußin | 2021-01-06 22:44:08 +0100 |
|---|---|---|
| committer | GitHub | 2021-01-06 22:44:08 +0100 |
| commit | 30b23db9e86fdf72a4e7de72213df274ce19123e (patch) | |
| tree | b06b5bf6a21e64ff1bfafff90861532e651352d5 /src/tool/deletion_tool.rs | |
| parent | 0eada0bdcb36a9907c6c928aa707ed6bef03c02f (diff) | |
| parent | 53d376eaeef991850d35318b147f75c8f103319d (diff) | |
| download | graf_karto-30b23db9e86fdf72a4e7de72213df274ce19123e.tar.gz graf_karto-30b23db9e86fdf72a4e7de72213df274ce19123e.zip | |
Merge pull request #25 from LordSentox/better-polygons
Change to polygongraph instead of polygon in roomtool
Diffstat (limited to 'src/tool/deletion_tool.rs')
| -rw-r--r-- | src/tool/deletion_tool.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool/deletion_tool.rs b/src/tool/deletion_tool.rs index afd916a..da2090b 100644 --- a/src/tool/deletion_tool.rs +++ b/src/tool/deletion_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 DeletionTool { impl DeletionTool { /// Create a new deletion tool, there should only be one deletion tool and it should be created /// by the editor. + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self { deletion_rect: None, |
