diff options
author | Alan Du <[email protected]> | 2019-06-03 15:01:27 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2019-06-04 23:05:07 +0100 |
commit | dddcb0ad940a8010bb5df3d44526729d8e705213 (patch) | |
tree | 14168131d0a986181b5af1b1d67e84964f9dc07b /crates | |
parent | ecd420636efe54657ae742ce960ce061740ef108 (diff) |
Fix clippy::needless_return
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_tt/src/buffer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_tt/src/buffer.rs b/crates/ra_tt/src/buffer.rs index 995c9f90b..5659aeae8 100644 --- a/crates/ra_tt/src/buffer.rs +++ b/crates/ra_tt/src/buffer.rs | |||
@@ -179,6 +179,6 @@ impl<'a> Cursor<'a> { | |||
179 | /// Check whether it is a top level | 179 | /// Check whether it is a top level |
180 | pub fn is_root(&self) -> bool { | 180 | pub fn is_root(&self) -> bool { |
181 | let entry_id = self.ptr.0; | 181 | let entry_id = self.ptr.0; |
182 | return entry_id.0 == 0; | 182 | entry_id.0 == 0 |
183 | } | 183 | } |
184 | } | 184 | } |