From 2576807382de9f53758ea8999406cb93aa03d755 Mon Sep 17 00:00:00 2001 From: 0x676e67 Date: Fri, 21 Mar 2025 18:28:13 +0800 Subject: [PATCH] chore: clippy fix --- boring/src/ssl/test/extensions.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/boring/src/ssl/test/extensions.rs b/boring/src/ssl/test/extensions.rs index 7dff7d55..c9bde49f 100644 --- a/boring/src/ssl/test/extensions.rs +++ b/boring/src/ssl/test/extensions.rs @@ -2,9 +2,7 @@ use crate::ssl::ExtensionType; #[test] fn test_exntension_order_index() { - let mut i = 0; - for ext in ExtensionType::BORING_SSLEXTENSION_PERMUTATION { + for (i, ext) in ExtensionType::BORING_SSLEXTENSION_PERMUTATION.iter().enumerate() { assert_eq!(ExtensionType::index_of(*ext), Some(i)); - i += 1; } -} +} \ No newline at end of file