You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2023/07/08 21:07:21 UTC
[avro] branch dependabot/cargo/lang/rust/master/libflate-2.0.0 updated: Simplify test code
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch dependabot/cargo/lang/rust/master/libflate-2.0.0
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/dependabot/cargo/lang/rust/master/libflate-2.0.0 by this push:
new 9ae558932 Simplify test code
9ae558932 is described below
commit 9ae5589322d9bab951240aff39c39134406ee35f
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Sun Jul 9 00:01:47 2023 +0300
Simplify test code
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
lang/rust/avro_derive/tests/derive.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lang/rust/avro_derive/tests/derive.rs b/lang/rust/avro_derive/tests/derive.rs
index 3dc217b6a..70d5cf72f 100644
--- a/lang/rust/avro_derive/tests/derive.rs
+++ b/lang/rust/avro_derive/tests/derive.rs
@@ -32,7 +32,7 @@ extern crate serde;
mod test_derive {
use apache_avro::schema::{Alias, EnumSchema, RecordSchema};
use std::{
- borrow::{Borrow, Cow},
+ borrow::Cow,
sync::Mutex,
};
@@ -866,7 +866,7 @@ mod test_derive {
// test serde with manual equality for mutex
let test = serde(test);
assert_eq!("hey", test.a);
- assert_eq!(vec![42], *test.b.borrow().lock().unwrap());
+ assert_eq!(vec![42], *test.b.lock().unwrap());
assert_eq!(Cow::Owned::<i32>(32), test.c);
}