aboutsummaryrefslogtreecommitdiff
path: root/src/tool/selection_tool.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool/selection_tool.rs')
-rw-r--r--src/tool/selection_tool.rs3
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,