From 8d3ff663899211c9c0ca2a8cf7d994e7acd3f83e Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Thu, 12 Jan 2023 10:14:17 -0500 Subject: Enable `clippy` checks for yjit in CI (#7093) * Add job to check clippy lints in CI * Address all remaining clippy lints * Check lints on arm64 as well * Apply latest clippy lints * Do not exit 0 on clippy warnings --- yjit/src/cruby.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yjit/src/cruby.rs') diff --git a/yjit/src/cruby.rs b/yjit/src/cruby.rs index ba09d4119f..ee6fa14031 100644 --- a/yjit/src/cruby.rs +++ b/yjit/src/cruby.rs @@ -450,7 +450,7 @@ impl VALUE { pub fn as_usize(self) -> usize { let VALUE(us) = self; - us as usize + us } pub fn as_ptr(self) -> *const T { -- cgit v1.2.3