From c7ea57df46329084b10e9166b947614f90b04662 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 21 Dec 2023 15:59:23 +0200 Subject: feat(nix-compat/store_path): derive [Partial]Eq This allows comparing StorePathRef structs. Change-Id: Ia69967ea9358052e2d6e76042a7e6d394f7f29a9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10386 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: edef --- tvix/nix-compat/src/store_path/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs index 9dfbb01630d7..fa172d1031a2 100644 --- a/tvix/nix-compat/src/store_path/mod.rs +++ b/tvix/nix-compat/src/store_path/mod.rs @@ -138,7 +138,7 @@ impl StorePath { /// Used by [StorePath] for parsing. /// /// TODO(edef): migrate most methods here -#[derive(Debug)] +#[derive(Debug, Eq, PartialEq)] pub struct StorePathRef<'a> { digest: [u8; DIGEST_SIZE], name: &'a str, -- cgit 1.4.1