Resolve all '#[allow(clippy::needless_return)]' error supressions

This commit is contained in:
Dr. Dystopia 2021-07-09 21:24:43 +02:00
parent 2c764c663a
commit dd84c320a3
2 changed files with 0 additions and 3 deletions

View File

@ -57,7 +57,6 @@ pub trait ChatCommandExt {
fn execute(&self, server: &mut Server, entity: EcsEntity, args: Vec<String>);
}
impl ChatCommandExt for ChatCommand {
#[allow(clippy::needless_return)] // TODO: Pending review in #587
fn execute(&self, server: &mut Server, entity: EcsEntity, args: Vec<String>) {
// TODO: Pass arguments to commands as Vec<String>, not String, to support
// proper parsing.
@ -1636,7 +1635,6 @@ fn handle_kit(
}
#[allow(clippy::float_cmp)] // TODO: Pending review in #587
#[allow(clippy::needless_return)] // TODO: Pending review in #587
fn handle_object(
server: &mut Server,
client: EcsEntity,

View File

@ -7,7 +7,6 @@ pub struct Font {
}
impl Font {
#[allow(clippy::needless_return)] // TODO: Pending review in #587
fn new(font: &i18n::Font, ui: &mut crate::ui::Ui) -> Result<Self, assets::Error> {
let raw_font = RawFont::load(&font.asset_key)?.cloned();