File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,15 @@ fn load_provisioning(path: impl Into<PathBuf>) -> Result<Vec<StrategyDefinition>
3131fn apply_partitioning ( whence : & Path ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
3232 // Initialize provisioner and load strategies
3333 let mut prov = Provisioner :: new ( ) ;
34- for strategy in load_provisioning ( "crates/provisioning/tests/use_whole_disk.kdl" ) ? {
34+ let strategies = load_provisioning ( "crates/provisioning/tests/use_whole_disk.kdl" ) ?;
35+ for strategy in & strategies {
3536 prov. add_strategy ( strategy) ;
3637 }
3738
3839 // Set up block device
3940 let device = disks:: loopback:: Device :: from_device_path ( whence) . ok_or ( "Not a loop device" ) ?;
4041 let blk = BlockDevice :: loopback_device ( device) ;
41- prov. push_device ( blk) ;
42+ prov. push_device ( & blk) ;
4243
4344 // Generate and validate partitioning plans
4445 let plans = prov. plan ( ) ;
You can’t perform that action at this time.
0 commit comments