refactor(tvix/nix-compat): address clippy in derivation/tests/mod.rs
Change-Id: I3f3f7cb590c900abf8b39533ed73fe9135d58f0b Reviewed-on: https://cl.tvl.fyi/c/depot/+/8220 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
f9dcf54b04
commit
93b0766485
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ fn read_file(path: &str) -> String {
|
|||
|
||||
file.read_to_string(&mut data).unwrap();
|
||||
|
||||
return data;
|
||||
data
|
||||
}
|
||||
|
||||
#[test_resources("src/derivation/tests/derivation_tests/*.drv")]
|
||||
|
@ -155,7 +155,7 @@ fn output_paths(name: &str, drv_path: &str) {
|
|||
|
||||
// We need to calculate the replacement_str, as fixed-sha1 does use it.
|
||||
derivation
|
||||
.calculate_output_paths(&name, &replacement_str)
|
||||
.calculate_output_paths(name, &replacement_str)
|
||||
.unwrap();
|
||||
|
||||
// The derivation should now look like it was before
|
||||
|
|
Loading…
Reference in a new issue