about summary refs log tree commit diff
path: root/tvix/store
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/store')
-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