snix/tvix/cli/src
Florian Klink 8ea93bb646 refactor(tvix/cli/derivation): use if let to destructure
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
2023-01-31 13:26:11 +00:00
..
.skip-subtree feat(tvix/cli): implement builtins.derivation 2023-01-27 12:21:41 +00:00
derivation.nix feat(tvix/cli): implement builtins.derivation 2023-01-27 12:21:41 +00:00
derivation.rs refactor(tvix/cli/derivation): use if let to destructure 2023-01-31 13:26:11 +00:00
errors.rs refactor(tvix/cli): describe errors with thiserror 2023-01-27 14:08:15 +00:00
known_paths.rs refactor(tvix/cli): consistently assert type unity in known_paths 2023-01-17 10:45:09 +00:00
main.rs feat(tvix/cli): implement builtins.derivation 2023-01-27 12:21:41 +00:00
nix_compat.rs fix(tvix/cli): correctly trim cppnix output in NixCompatIO 2023-01-26 10:29:55 +00:00
refscan.rs refactor(tvix/cli): reference scanner owns all the strings 2023-01-17 10:31:42 +00:00