about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-03-04T02·33+0100
committerclbot <clbot@tvl.fyi>2023-03-04T12·19+0000
commitf9dcf54b048469fd9f681ef6fdc9849b27384e93 (patch)
treee6742e12438bfba67055ad44b42c08e74652b6e1 /tvix
parent248f1c21518c7574f4e2e9e73c065a9c1f0b3e75 (diff)
refactor(tvix/nix-compat): address clippy in store_path.rs r/5876
Change-Id: Ib10bd93bbb23696d7048e7ed8e405953db94693f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8219
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/nix-compat/src/store_path.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/store_path.rs b/tvix/nix-compat/src/store_path.rs
index e6c703f7ce0c..980312bff1b1 100644
--- a/tvix/nix-compat/src/store_path.rs
+++ b/tvix/nix-compat/src/store_path.rs
@@ -130,7 +130,7 @@ mod tests {
         let example_nix_path_str =
             "00bgd045z0d4icpbc2yyz4gx48ak44la-net-tools-1.60_p20170221182432";
         let nixpath =
-            StorePath::from_string(&example_nix_path_str).expect("Error parsing example string");
+            StorePath::from_string(example_nix_path_str).expect("Error parsing example string");
 
         let expected_digest: [u8; DIGEST_SIZE] = [
             0x8a, 0x12, 0x32, 0x15, 0x22, 0xfd, 0x91, 0xef, 0xbd, 0x60, 0xeb, 0xb2, 0x48, 0x1a,
@@ -173,7 +173,7 @@ mod tests {
     fn absolute_path() {
         let example_nix_path_str =
             "00bgd045z0d4icpbc2yyz4gx48ak44la-net-tools-1.60_p20170221182432";
-        let nixpath_expected = StorePath::from_string(&example_nix_path_str).expect("must parse");
+        let nixpath_expected = StorePath::from_string(example_nix_path_str).expect("must parse");
 
         let nixpath_actual = StorePath::from_absolute_path(
             "/nix/store/00bgd045z0d4icpbc2yyz4gx48ak44la-net-tools-1.60_p20170221182432",