From dddcb0ad940a8010bb5df3d44526729d8e705213 Mon Sep 17 00:00:00 2001 From: Alan Du Date: Mon, 3 Jun 2019 10:01:27 -0400 Subject: Fix clippy::needless_return --- crates/ra_tt/src/buffer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_tt') 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> { /// 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 } } -- cgit v1.2.3