From dddcb0ad940a8010bb5df3d44526729d8e705213 Mon Sep 17 00:00:00 2001 From: Alan Du Date: Mon, 3 Jun 2019 10:01:27 -0400 Subject: [PATCH] Fix clippy::needless_return --- crates/ra_tt/src/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ra_tt/src/buffer.rs b/crates/ra_tt/src/buffer.rs index 995c9f90be5..5659aeae8bf 100644 --- a/crates/ra_tt/src/buffer.rs +++ b/crates/ra_tt/src/buffer.rs @@ -179,6 +179,6 @@ impl<'a> Cursor<'a> { /// Check whether it is a top level pub fn is_root(&self) -> bool { let entry_id = self.ptr.0; - return entry_id.0 == 0; + entry_id.0 == 0 } }