From abcf2b32777ffb934788e3219cacc2bbc048b6a3 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 11 Apr 2021 15:31:32 +0530 Subject: add `selection-start` and `selection-end` primitives --- src/utils.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/utils.rs') diff --git a/src/utils.rs b/src/utils.rs index 0825c8c..d5d4039 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,7 +1,7 @@ use crate::{ app::AppState, - consts::FONT_PATH, bitmap::{abs_difference, MapPoint}, + consts::FONT_PATH, lisp::{ error::{EvalError, LispError, ParseError}, eval::Evaluator, @@ -143,7 +143,8 @@ pub fn rect_coords(s: MapPoint, e: MapPoint) -> (MapPoint, MapPoint) { (e.x, s.y) } else { (e.x, e.y) - }.into(); + } + .into(); let end_loc = start_loc + (width, height).into(); (start_loc, end_loc) } -- cgit v1.2.3