Skip to content

Commit 2c0a56e

Browse files
committed
build: Remove unneeded as_bytes
Signed-off-by: Akira Moroo <[email protected]>
1 parent ee1c493 commit 2c0a56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/efi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ pub fn efi_exec(
266266
let wrapped_fs = file::FileSystemWrapper::new(fs, efi_part_id);
267267

268268
let mut path = [0u8; 256];
269-
path[0..crate::efi::EFI_BOOT_PATH.as_bytes().len()]
269+
path[0..crate::efi::EFI_BOOT_PATH.len()]
270270
.copy_from_slice(crate::efi::EFI_BOOT_PATH.as_bytes());
271271
let device_path = DevicePath::File(path);
272272
let image = new_image_handle(

0 commit comments

Comments
 (0)