aboutsummaryrefslogtreecommitdiffstats
path: root/yjit/src/lib.rs
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-04-27 14:08:52 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2022-04-29 15:03:45 -0400
commitfead7107abc494ef051fd26357c21a546b49c7d9 (patch)
tree8605fc5e827abb03f2020193ba3f28ca2108147c /yjit/src/lib.rs
parentf8e4488e5e01c07cc8c139e6030a5dfca45b824c (diff)
downloadruby-fead7107abc494ef051fd26357c21a546b49c7d9.tar.gz
YJIT: Adopt Clippy suggestions we like
This adopts most suggestions that rust-clippy is confident enough to auto apply. The manual changes mostly fix manual if-lets and take opportunities to use the `Default` trait on standard collections. Co-authored-by: Kevin Newton <kddnewton@gmail.com> Co-authored-by: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com>
Diffstat (limited to 'yjit/src/lib.rs')
-rw-r--r--yjit/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/yjit/src/lib.rs b/yjit/src/lib.rs
index b7355f55e3..2bd8ca03f2 100644
--- a/yjit/src/lib.rs
+++ b/yjit/src/lib.rs
@@ -3,7 +3,11 @@
#![allow(dead_code)]
#![allow(unused_assignments)]
#![allow(unused_macros)]
+
+// Clippy disagreements
#![allow(clippy::style)] // We are laid back about style
+#![allow(clippy::too_many_arguments)] // :shrug:
+#![allow(clippy::identity_op)] // Sometimes we do it for style
mod asm;
mod codegen;