From e7892f32e54659dac12c0671b0e25dfc889977ab Mon Sep 17 00:00:00 2001 From: dishmaker <141624503+dishmaker@users.noreply.github.com> Date: Sat, 3 Oct 2026 01:35:04 +0200 Subject: [PATCH] p521: apply clippy `manual_swap` lint --- p521/src/arithmetic/field.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/p521/src/arithmetic/field.rs b/p521/src/arithmetic/field.rs index 0f91ad4fc..3957c08b3 100644 --- a/p521/src/arithmetic/field.rs +++ b/p521/src/arithmetic/field.rs @@ -188,9 +188,7 @@ impl FieldElement { let mut i = 0; while i < (BYTES / 2) { let j = BYTES - i - 1; - let tmp = ret[i]; - ret[i] = ret[j]; - ret[j] = tmp; + ret.swap(i, j); i += 1; }