about summary refs log tree commit diff
path: root/tvix/nix-compat/src/derivation
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-04T02·34+0100
committerclbot <clbot@tvl.fyi>2023-03-04T12·19+0000
commit93b0766485c25cb6b2f27c6a31e3306890613133 (patch)
tree452b07a7e25b9ac9cbb729bdbd80aacb2d6cd514 /tvix/nix-compat/src/derivation
parentf9dcf54b048469fd9f681ef6fdc9849b27384e93 (diff)
refactor(tvix/nix-compat): address clippy in derivation/tests/mod.rs r/5877
Change-Id: I3f3f7cb590c900abf8b39533ed73fe9135d58f0b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8220
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat/src/derivation')
-rw-r--r--tvix/nix-compat/src/derivation/tests/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/derivation/tests/mod.rs b/tvix/nix-compat/src/derivation/tests/mod.rs
index 7b0ef6c3d961..34f6cae678d4 100644
--- a/tvix/nix-compat/src/derivation/tests/mod.rs
+++ b/tvix/nix-compat/src/derivation/tests/mod.rs
@@ -17,7 +17,7 @@ fn read_file(path: &str) -> String {
 
     file.read_to_string(&mut data).unwrap();
 
-    return data;
+    data
 }
 
 #[test_resources("src/derivation/tests/derivation_tests/*.drv")]
@@ -155,7 +155,7 @@ fn output_paths(name: &str, drv_path: &str) {
 
     // We need to calculate the replacement_str, as fixed-sha1 does use it.
     derivation
-        .calculate_output_paths(&name, &replacement_str)
+        .calculate_output_paths(name, &replacement_str)
         .unwrap();
 
     // The derivation should now look like it was before