From 582a0902bc1ba83b9748976e240e4941356ed757 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:56:08 +0000 Subject: [PATCH] Part revert prior two commits --- vello_shaders/src/cpu.rs | 4 ++++ vello_shaders/src/lib.rs | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/vello_shaders/src/cpu.rs b/vello_shaders/src/cpu.rs index 443f7f66..ae297716 100644 --- a/vello_shaders/src/cpu.rs +++ b/vello_shaders/src/cpu.rs @@ -7,6 +7,10 @@ //! a full CPU fallback as an alternative to GPU shaders is not provided. // Allow un-idiomatic Rust to more closely match shaders +#![expect( + clippy::needless_range_loop, + reason = "Keeps code easily comparable to GPU shaders" +)] mod backdrop; mod bbox_clear; diff --git a/vello_shaders/src/lib.rs b/vello_shaders/src/lib.rs index ae46c05a..60893ec3 100644 --- a/vello_shaders/src/lib.rs +++ b/vello_shaders/src/lib.rs @@ -45,7 +45,6 @@ clippy::missing_assert_message, clippy::missing_errors_doc, clippy::missing_panics_doc, - clippy::needless_range_loop, clippy::print_stderr, clippy::print_stdout, clippy::shadow_unrelated,