From 012b6332e90461b8dd30fd213f206d58c9f87519 Mon Sep 17 00:00:00 2001 From: Eike S R Date: Thu, 25 Apr 2024 09:30:36 +0200 Subject: [PATCH] Fix warning in rust implementation tests --- flatdata-rs/lib/src/arrayview.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flatdata-rs/lib/src/arrayview.rs b/flatdata-rs/lib/src/arrayview.rs index 67f86caf..ba23f04d 100644 --- a/flatdata-rs/lib/src/arrayview.rs +++ b/flatdata-rs/lib/src/arrayview.rs @@ -102,7 +102,7 @@ mod test { let x = { // test clone and lifetime of returned reference - let view_copy = view.clone(); + let view_copy = view; &view_copy[0] }; assert_eq!(65535, x.x()); @@ -110,7 +110,7 @@ mod test { let x = { // test clone and lifetime of returned reference - let view_copy = view.clone(); + let view_copy = view; view_copy.iter().next().unwrap() }; assert_eq!(65535, x.x());