diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-02 14:09:40 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-02 14:09:40 +0200 |
| commit | c920f258f6c9b0623a841b7c27561fa1d09cef72 (patch) | |
| tree | a61474510657cefea020c694bb249ae16baf9a75 /src/state | |
| parent | 555a45a9f2b68a48b098099804ce795e3d5a350b (diff) | |
do some clippy cleanups
Diffstat (limited to 'src/state')
| -rw-r--r-- | src/state/view/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/view/mod.rs b/src/state/view/mod.rs index 73f02ab..543644c 100644 --- a/src/state/view/mod.rs +++ b/src/state/view/mod.rs @@ -64,13 +64,13 @@ impl SheetViewState { fn selection_range(&self) -> Option<((usize, usize), (usize, usize))> { if let Some(selection) = self.selection_anchor { - let row = if selection.0 as usize > self.cursor.y() { + let row = if selection.0 > self.cursor.y() { (self.cursor.y(), selection.0) } else { (selection.0, self.cursor.y()) }; - let column = if selection.1 as usize > self.cursor.x() { + let column = if selection.1 > self.cursor.x() { (self.cursor.x(), selection.1) } else { (selection.1, self.cursor.x()) |