about summary refs log tree commit diff
path: root/tvix/nix-compat/src/store_path
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-12-21T13·59+0200
committerclbot <clbot@tvl.fyi>2023-12-21T16·19+0000
commitc7ea57df46329084b10e9166b947614f90b04662 (patch)
tree35c02f801d292b732ec4db66971ff93a3acc8e66 /tvix/nix-compat/src/store_path
parent717456c3a24aa1fabfe02c408144038f207a58f9 (diff)
feat(nix-compat/store_path): derive [Partial]Eq r/7233
This allows comparing StorePathRef structs.

Change-Id: Ia69967ea9358052e2d6e76042a7e6d394f7f29a9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10386
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: edef <edef@edef.eu>
Diffstat (limited to 'tvix/nix-compat/src/store_path')
-rw-r--r--tvix/nix-compat/src/store_path/mod.rs2
1 files changed, 1 insertions, 1 deletions
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,