aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_tt
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2019-06-03 15:01:27 +0100
committerAlan Du <[email protected]>2019-06-04 23:05:07 +0100
commitdddcb0ad940a8010bb5df3d44526729d8e705213 (patch)
tree14168131d0a986181b5af1b1d67e84964f9dc07b /crates/ra_tt
parentecd420636efe54657ae742ce960ce061740ef108 (diff)
Fix clippy::needless_return
Diffstat (limited to 'crates/ra_tt')
-rw-r--r--crates/ra_tt/src/buffer.rs2
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}