diff options
author | Florian Klink <flokli@flokli.de> | 2023-01-31T11·28+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-01-31T13·26+0000 |
commit | 8ea93bb646456864088a2c93e9ab2c4ccae75cba (patch) | |
tree | 3befa27f6680b49ddd897c191cec6eaa523deafd /tvix/nix-compat/src/store_path.rs | |
parent | 6fa91349a9b97e74cf3dd9833da19b3450045e20 (diff) |
refactor(tvix/cli/derivation): use `if let` to destructure r/5787
We only do logic here if algo and hash_mode are Some(_) (and there's an `out` output). The fact we don't do anything in all in other cases is a bit hidden at the bottom. Use if let for the destructuring, and drop the other case. Change-Id: Icc0e38e62947d52d48ef610f754749737977fca9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7966 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat/src/store_path.rs')
0 files changed, 0 insertions, 0 deletions