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 2022/02/01 11:51:42 UTC
[avro] 27/30: AVRO-3316 [Rust] build breaks in docker build
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git
commit c81e1aa349bc6cf9114b69641a95f99e981b845a
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Thu Jan 20 20:50:55 2022 +0200
AVRO-3316 [Rust] build breaks in docker build
Make the test return Unit. No need to return Ok (Result)
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
(cherry picked from commit 9917a55d858dcd74d53176fad5341eb3f8846ae8)
---
lang/rust/tests/io.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lang/rust/tests/io.rs b/lang/rust/tests/io.rs
index 2d4c7ee..4714493 100644
--- a/lang/rust/tests/io.rs
+++ b/lang/rust/tests/io.rs
@@ -218,7 +218,7 @@ fn test_default_value() {
}
#[test]
-fn test_no_default_value() -> Result<(), Error> {
+fn test_no_default_value() {
let reader_schema = Schema::parse_str(
r#"{
"type": "record",
@@ -236,7 +236,6 @@ fn test_no_default_value() -> Result<(), Error> {
Some(&reader_schema),
);
assert!(result.is_err());
- Ok(())
}
#[test]