From 36c3e646e12622c1be6032f72bc1569d5b6a23d7 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Fri, 8 Dec 2023 19:49:41 -0800 Subject: chore(store/src/tests): make clippy shut up Change-Id: I6dfceaa32a8c01f8395b7889ae19847fabf95ed3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10214 Tested-by: BuildkiteCI Autosubmit: Adam Joseph Reviewed-by: flokli --- tvix/store/src/tests/nar_renderer.rs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'tvix/store') diff --git a/tvix/store/src/tests/nar_renderer.rs b/tvix/store/src/tests/nar_renderer.rs index b92739552ce7..811b572b6e5c 100644 --- a/tvix/store/src/tests/nar_renderer.rs +++ b/tvix/store/src/tests/nar_renderer.rs @@ -129,12 +129,9 @@ async fn single_file() { // insert blob into the store let mut writer = blob_service.open_write().await; - tokio::io::copy( - &mut io::Cursor::new(HELLOWORLD_BLOB_CONTENTS.clone()), - &mut writer, - ) - .await - .unwrap(); + tokio::io::copy(&mut io::Cursor::new(HELLOWORLD_BLOB_CONTENTS), &mut writer) + .await + .unwrap(); assert_eq!( HELLOWORLD_BLOB_DIGEST.clone(), @@ -168,12 +165,9 @@ async fn test_complicated() { // put all data into the stores. // insert blob into the store let mut writer = blob_service.open_write().await; - tokio::io::copy( - &mut io::Cursor::new(EMPTY_BLOB_CONTENTS.clone()), - &mut writer, - ) - .await - .unwrap(); + tokio::io::copy(&mut io::Cursor::new(EMPTY_BLOB_CONTENTS), &mut writer) + .await + .unwrap(); assert_eq!(EMPTY_BLOB_DIGEST.clone(), writer.close().await.unwrap()); directory_service -- cgit 1.4.1