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:
parent
789c5e31fa
commit
71cd5f813e
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user