Fix up the reason given for a couple of too_many_arguments lints (#17251)

# Objective
In my crusade to give every lint attribute a reason, it appears I got
too complacent and copy-pasted this expect onto non-system functions.

## Solution
Fix up the reason on those non-system functions

## Testing
N/A
This commit is contained in:
MichiRecRoom 2025-01-08 21:39:10 -05:00 committed by GitHub
parent 789c5e31fa
commit 71cd5f813e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -528,7 +528,7 @@ impl MeshAllocator {
/// A generic function that copies either vertex or index data into a slab.
#[expect(
clippy::too_many_arguments,
reason = "Could be rewritten with less arguments using a QueryData-implementing struct, but doesn't need to be."
reason = "Used in systems to reduce the amount of code duplication"
)]
fn copy_element_data(
&mut self,

View File

@ -581,7 +581,7 @@ pub(crate) fn submit_screenshot_commands(world: &World, encoder: &mut CommandEnc
#[expect(
clippy::too_many_arguments,
reason = "Could be rewritten with less arguments using a QueryData-implementing struct, but doesn't need to be."
reason = "Used in systems to reduce the amount of code duplication"
)]
fn render_screenshot(
encoder: &mut CommandEncoder,

View File

@ -190,7 +190,7 @@ impl Measure for TextMeasure {
#[expect(
clippy::too_many_arguments,
reason = "Could be rewritten with less arguments using a QueryData-implementing struct, but doesn't need to be."
reason = "Used in measure_text_system to make the function body easier to read"
)]
#[inline]
fn create_text_measure<'a>(
@ -318,7 +318,7 @@ pub fn measure_text_system(
#[expect(
clippy::too_many_arguments,
reason = "Could be rewritten with less arguments using a QueryData-implementing struct, but doesn't need to be."
reason = "Used in text_system to make the function body easier to read"
)]
#[inline]
fn queue_text(