From 93b0766485c25cb6b2f27c6a31e3306890613133 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 4 Mar 2023 03:34:24 +0100 Subject: [PATCH] refactor(tvix/nix-compat): address clippy in derivation/tests/mod.rs Change-Id: I3f3f7cb590c900abf8b39533ed73fe9135d58f0b Reviewed-on: https://cl.tvl.fyi/c/depot/+/8220 Reviewed-by: tazjin Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/nix-compat/src/derivation/tests/mod.rs | 4 ++-- 1 file 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 7b0ef6c3d..34f6cae67 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