From e49429ae8ac1024266a364761dc33c2737f200e5 Mon Sep 17 00:00:00 2001 From: xxchan Date: Sat, 16 Dec 2023 00:57:56 +0800 Subject: [PATCH] clippy --- src/connector/src/with_options_test/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector/src/with_options_test/mod.rs b/src/connector/src/with_options_test/mod.rs index 7d3ca70ede41..b8912f109ddb 100644 --- a/src/connector/src/with_options_test/mod.rs +++ b/src/connector/src/with_options_test/mod.rs @@ -88,7 +88,7 @@ fn generate_with_options_yaml_inner(path: &Path) -> String { for field in struct_item.fields { // Process each field if let Some(field_name) = &field.ident { - if field_name.to_string() == "unknown_fields" { + if field_name == "unknown_fields" { continue; }