From c22f1571adcd8bd79559e8e7fa8d198efa33a376 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 14 Oct 2024 10:58:17 +0800 Subject: [PATCH] Fix build Signed-off-by: Xuanwo --- src/sinks/webhdfs/integration_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sinks/webhdfs/integration_tests.rs b/src/sinks/webhdfs/integration_tests.rs index 7a453e21cf4dc..c0892d1e3465b 100644 --- a/src/sinks/webhdfs/integration_tests.rs +++ b/src/sinks/webhdfs/integration_tests.rs @@ -87,7 +87,7 @@ async fn hdfs_rotate_files_after_the_buffer_size_is_reached() { let mut response_lines: Vec> = Vec::new(); for o in objects { - let bs = op.read(o.path()).await.unwrap(); + let bs = op.read(o.path()).await.unwrap().to_vec(); let buf_read = BufReader::new(Cursor::new(bs)); response_lines.push(buf_read.lines().map(|l| l.unwrap()).collect());