about summary refs log tree commit diff
path: root/tvix/nix-compat/src
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-12-09T11·09+0200
committerclbot <clbot@tvl.fyi>2023-12-09T12·58+0000
commit1bdb90e56d5e5982ee7fc3e3c72acfab32cdad64 (patch)
tree5ceef57dabc1be5e47103a7137d1788b1443be43 /tvix/nix-compat/src
parentd3ecef1a5b35d1a5a78ddba218fae89553c12ee5 (diff)
refactor(nix-compat/derivation): address clippy r/7135
Change-Id: I5d7057347838f733d7dc1331c7b7ef8d27244412
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10228
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nix-compat/src')
-rw-r--r--tvix/nix-compat/src/derivation/parser.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/nix-compat/src/derivation/parser.rs b/tvix/nix-compat/src/derivation/parser.rs
index 36e512514fb6..f54852cb229c 100644
--- a/tvix/nix-compat/src/derivation/parser.rs
+++ b/tvix/nix-compat/src/derivation/parser.rs
@@ -473,7 +473,7 @@ mod tests {
         ("out".to_string(), Output {
             path: "/nix/store/4q0pg5zpfmznxscq3avycvf9xdvx50n3-bar".to_string(),
             ca_hash: Some(from_algo_and_mode_and_digest("r:sha256",
-                   &data_encoding::HEXLOWER.decode(b"08813cbee9903c62be4c5027726a418a300da4500b2d369d3af9286f4815ceba").unwrap()            ).unwrap()),
+                   data_encoding::HEXLOWER.decode(b"08813cbee9903c62be4c5027726a418a300da4500b2d369d3af9286f4815ceba").unwrap()            ).unwrap()),
         }); "fod"
      )]
     fn parse_output(input: &[u8], expected: (String, Output)) {
@@ -504,7 +504,7 @@ mod tests {
 
     #[test]
     fn from_algo_and_mode_and_digest_failure() {
-        assert!(from_algo_and_mode_and_digest("r:sha256", &[]).is_err());
-        assert!(from_algo_and_mode_and_digest("ha256", &DIGEST_SHA256).is_err());
+        assert!(from_algo_and_mode_and_digest("r:sha256", []).is_err());
+        assert!(from_algo_and_mode_and_digest("ha256", DIGEST_SHA256).is_err());
     }
 }