fn find_boot_partition_number()

in src/ade.rs [144:151]


fn find_boot_partition_number(partitions: &[PartInfo]) -> i32 {
    let boot_partition = partitions
        .iter()
        .filter(|part| part.part_type != "EF00")
        .find(|part| part.fstype != "crypt?");
    // unwrap is safe here because we know that there is a boot partition
    boot_partition.unwrap().number
}