From c2af6d261f718b39a49775604234ae1973e16ab2 Mon Sep 17 00:00:00 2001 From: Martin Grigorov Date: Thu, 21 Sep 2023 09:48:57 +0300 Subject: [PATCH] Give better name for the local variable --- lang/rust/avro/src/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/rust/avro/src/schema.rs b/lang/rust/avro/src/schema.rs index 6c91cd413f0..132b2301076 100644 --- a/lang/rust/avro/src/schema.rs +++ b/lang/rust/avro/src/schema.rs @@ -5955,7 +5955,7 @@ mod tests { let schema = Schema::parse_str(schema_str)?; let expected = vec![Alias::new("ns1.fx1")?, Alias::new("ns2.fx2")?]; match schema.aliases() { - Some(s) => assert_eq!(s, &expected), + Some(aliases) => assert_eq!(aliases, &expected), None => panic!("Expected Some({:?}), got None", expected), }