Janitor: Fix clippy::needless_return

This commit is contained in:
Tobias Hunger 2021-08-04 21:31:38 +02:00 committed by Olivier Goffart
parent 24a2021226
commit c74565a883
3 changed files with 3 additions and 3 deletions

View file

@ -963,7 +963,7 @@ pub fn animation_for_property(
); );
} }
} }
return Default::default(); Default::default()
}, },
)) ))
} }

View file

@ -59,7 +59,7 @@ pub fn backend() -> &'static dyn sixtyfps_corelib::backend::Backend {
// If Qt is not available always fallback to Gl // If Qt is not available always fallback to Gl
return Box::new(sixtyfps_rendering_backend_gl::Backend); return Box::new(sixtyfps_rendering_backend_gl::Backend);
} }
return Box::new(default_backend::Backend); Box::new(default_backend::Backend)
}) })
} }

View file

@ -206,7 +206,7 @@ pub(crate) fn completion_at(
_ => (), _ => (),
} }
} }
return None; None
} }
fn with_insert_text( fn with_insert_text(