Skip to content

Commit 4d2c4db

Browse files
committed
efi: Remove unnecessary cast
clippy suggests removal of unnecessary casting integer literal to `u64`. Signed-off-by: Akira Moroo <[email protected]>
1 parent 9faaf46 commit 4d2c4db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/efi/block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl<'a> BlockWrapper<'a> {
190190
AllocateType::AllocateAnyPages,
191191
MemoryType::LoaderData,
192192
((size + super::PAGE_SIZE as usize - 1) / super::PAGE_SIZE as usize) as u64,
193-
0 as u64,
193+
0_u64,
194194
);
195195

196196
let bw = new_address as *mut BlockWrapper;

src/efi/file.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl<'a> FileSystemWrapper<'a> {
213213
AllocateType::AllocateAnyPages,
214214
MemoryType::LoaderData,
215215
((size + super::PAGE_SIZE as usize - 1) / super::PAGE_SIZE as usize) as u64,
216-
0 as u64,
216+
0_u64,
217217
);
218218

219219
if status == Status::SUCCESS {

0 commit comments

Comments
 (0)