From c74565a88333366c817c44bfe78db6feb53c65f3 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 4 Aug 2021 21:31:38 +0200 Subject: [PATCH] Janitor: Fix clippy::needless_return --- sixtyfps_runtime/interpreter/dynamic_component.rs | 2 +- sixtyfps_runtime/rendering_backends/default/lib.rs | 2 +- tools/lsp/completion.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sixtyfps_runtime/interpreter/dynamic_component.rs b/sixtyfps_runtime/interpreter/dynamic_component.rs index d6c90623f..24b29a962 100644 --- a/sixtyfps_runtime/interpreter/dynamic_component.rs +++ b/sixtyfps_runtime/interpreter/dynamic_component.rs @@ -963,7 +963,7 @@ pub fn animation_for_property( ); } } - return Default::default(); + Default::default() }, )) } diff --git a/sixtyfps_runtime/rendering_backends/default/lib.rs b/sixtyfps_runtime/rendering_backends/default/lib.rs index 22d51baf4..d270b690e 100644 --- a/sixtyfps_runtime/rendering_backends/default/lib.rs +++ b/sixtyfps_runtime/rendering_backends/default/lib.rs @@ -59,7 +59,7 @@ pub fn backend() -> &'static dyn sixtyfps_corelib::backend::Backend { // If Qt is not available always fallback to Gl return Box::new(sixtyfps_rendering_backend_gl::Backend); } - return Box::new(default_backend::Backend); + Box::new(default_backend::Backend) }) } diff --git a/tools/lsp/completion.rs b/tools/lsp/completion.rs index d1d516bcd..b9a7535d9 100644 --- a/tools/lsp/completion.rs +++ b/tools/lsp/completion.rs @@ -206,7 +206,7 @@ pub(crate) fn completion_at( _ => (), } } - return None; + None } fn with_insert_text(