refactor(nix-compat/derivation): address clippy
Change-Id: I5d7057347838f733d7dc1331c7b7ef8d27244412 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10228 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
d3ecef1a5b
commit
1bdb90e56d
1 changed files with 3 additions and 3 deletions
|
@ -473,7 +473,7 @@ mod tests {
|
|||
("out".to_string(), Output {
|
||||
path: "/nix/store/4q0pg5zpfmznxscq3avycvf9xdvx50n3-bar".to_string(),
|
||||
ca_hash: Some(from_algo_and_mode_and_digest("r:sha256",
|
||||
&data_encoding::HEXLOWER.decode(b"08813cbee9903c62be4c5027726a418a300da4500b2d369d3af9286f4815ceba").unwrap() ).unwrap()),
|
||||
data_encoding::HEXLOWER.decode(b"08813cbee9903c62be4c5027726a418a300da4500b2d369d3af9286f4815ceba").unwrap() ).unwrap()),
|
||||
}); "fod"
|
||||
)]
|
||||
fn parse_output(input: &[u8], expected: (String, Output)) {
|
||||
|
@ -504,7 +504,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn from_algo_and_mode_and_digest_failure() {
|
||||
assert!(from_algo_and_mode_and_digest("r:sha256", &[]).is_err());
|
||||
assert!(from_algo_and_mode_and_digest("ha256", &DIGEST_SHA256).is_err());
|
||||
assert!(from_algo_and_mode_and_digest("r:sha256", []).is_err());
|
||||
assert!(from_algo_and_mode_and_digest("ha256", DIGEST_SHA256).is_err());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue