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 <flokli@flokli.de> Reviewed-by: edef <edef@edef.eu>
This commit is contained in:
parent
717456c3a2
commit
c7ea57df46
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue