Skip to content

Commit 5136fa7

Browse files
committed
blockdev: remove #[allow(dead_code)] for functions
1 parent 8f9ac22 commit 5136fa7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/blockdev.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ pub fn get_single_device<P: AsRef<Path>>(target_root: P) -> Result<String> {
3737

3838
/// Find esp partition on the same device
3939
/// using sfdisk to get partitiontable
40-
#[allow(dead_code)]
4140
pub fn get_esp_partition(device: &str) -> Result<Option<String>> {
4241
const ESP_TYPE_GUID: &str = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B";
4342
let device_info: PartitionTable = bootc_blockdev::partitions_of(Utf8Path::new(device))?;
@@ -52,7 +51,6 @@ pub fn get_esp_partition(device: &str) -> Result<Option<String>> {
5251
}
5352

5453
/// Find all ESP partitions on the devices with mountpoint boot
55-
#[allow(dead_code)]
5654
pub fn find_colocated_esps<P: AsRef<Path>>(target_root: P) -> Result<Vec<String>> {
5755
// first, get the parent device
5856
let devices = get_devices(&target_root).with_context(|| "while looking for colocated ESPs")?;

0 commit comments

Comments
 (0)