From f9dcf54b048469fd9f681ef6fdc9849b27384e93 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 4 Mar 2023 03:33:45 +0100 Subject: refactor(tvix/nix-compat): address clippy in store_path.rs Change-Id: Ib10bd93bbb23696d7048e7ed8e405953db94693f Reviewed-on: https://cl.tvl.fyi/c/depot/+/8219 Autosubmit: flokli Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/nix-compat/src/store_path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/nix-compat/src') 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", -- cgit 1.4.1