From 4e1f4c8cd7180606156b71ad0222f60e4559f2b3 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 6 Jan 2017 20:44:51 -0800 Subject: Clippy fixes! --- src/selection.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/selection.rs') 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; } } -- cgit v1.2.3-54-g00ecf