From 0a2d11e75f746b65e97084785096a6e059173088 Mon Sep 17 00:00:00 2001 From: xxchan Date: Thu, 12 Sep 2024 17:28:20 +0800 Subject: [PATCH] lint Signed-off-by: xxchan --- src/connector/codec/src/decoder/protobuf/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector/codec/src/decoder/protobuf/parser.rs b/src/connector/codec/src/decoder/protobuf/parser.rs index edae3433a84c6..3e6edebf0d899 100644 --- a/src/connector/codec/src/decoder/protobuf/parser.rs +++ b/src/connector/codec/src/decoder/protobuf/parser.rs @@ -203,7 +203,7 @@ pub fn from_protobuf_value<'a>( // order matters. We sort by key here to have deterministic order // in tests. We might consider removing this, or make all MapValue sorted // in the future. - for (key, value) in map.into_iter().sorted_by_key(|(k, _v)| *k) { + for (key, value) in map.iter().sorted_by_key(|(k, _v)| *k) { key_builder.append(from_protobuf_value( field_desc, &key.clone().into(),