about summary refs log tree commit diff
path: root/tvix/store/src/tests
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-12-09T03·49-0800
committerclbot <clbot@tvl.fyi>2023-12-09T10·51+0000
commit36c3e646e12622c1be6032f72bc1569d5b6a23d7 (patch)
tree160ed400d0051907aa52b2b7c33d3c5d577cfadd /tvix/store/src/tests
parentdfca87953554a8e9d21feffe1dc918d0a53b3a14 (diff)
chore(store/src/tests): make clippy shut up r/7129
Change-Id: I6dfceaa32a8c01f8395b7889ae19847fabf95ed3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10214
Tested-by: BuildkiteCI
Autosubmit: Adam Joseph <adam@westernsemico.com>
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/store/src/tests')
-rw-r--r--tvix/store/src/tests/nar_renderer.rs18
1 files changed, 6 insertions, 12 deletions
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