aboutsummaryrefslogtreecommitdiff
path: root/src/selection.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:44:51 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-01-06 20:44:51 -0800
commit4e1f4c8cd7180606156b71ad0222f60e4559f2b3 (patch)
tree28d7a983f5639270976de1f794cc54cb349ea4a8 /src/selection.rs
parent49187d53f2f8b7cfca9105c3fb00d7c29e2a457b (diff)
downloadalacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.tar.gz
alacritty-4e1f4c8cd7180606156b71ad0222f60e4559f2b3.zip
Clippy fixes!
Diffstat (limited to 'src/selection.rs')
-rw-r--r--src/selection.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selection.rs b/src/selection.rs
index ff587b9d..3e5b799c 100644
--- a/src/selection.rs
+++ b/src/selection.rs
@@ -106,14 +106,14 @@ impl Selection {
// Single-cell selections are a special case
if start == end {
- if start_side != end_side {
+ if start_side == end_side {
+ return None;
+ } else {
return Some(Span {
ty: SpanType::Inclusive,
front: *front,
tail: *tail
});
- } else {
- return None;
}
}