From 1edd7f416604cf56227fe5e2010046e5a55bf6e0 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 11 Jun 2022 20:27:08 +0100 Subject: [PATCH] Add a bunch of new clippy lints --- agb/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/agb/src/lib.rs b/agb/src/lib.rs index aee34b4..87854be 100644 --- a/agb/src/lib.rs +++ b/agb/src/lib.rs @@ -6,6 +6,15 @@ #![cfg_attr(test, reexport_test_harness_main = "test_main")] #![feature(alloc_error_handler)] #![warn(clippy::all)] +#![warn(clippy::must_use_candidate)] +#![warn(clippy::trivially_copy_pass_by_ref)] +#![warn(clippy::semicolon_if_nothing_returned)] +#![warn(clippy::match_same_arms)] +#![warn(clippy::cast_lossless)] +#![warn(clippy::map_unwrap_or)] +#![warn(clippy::needless_pass_by_value)] +#![warn(clippy::redundant_closure_for_method_calls)] +#![warn(clippy::cloned_instead_of_copied)] //! # agb //! `agb` is a library for making games on the Game Boy Advance using the Rust