Skip to content

Commit 87a6837

Browse files
committed
fix clippy
Signed-off-by: Koichi <koichi.imai.2@tier4.jp>
1 parent 4869e4d commit 87a6837

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

awkernel_lib/src/dma_map.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,7 @@ impl DmaMap {
204204
/// Load buffer using bounce buffer
205205
fn load_with_bounce(&mut self, vaddr: VirtAddr, size: usize) -> Result<(), DmaError> {
206206
let pages = size.div_ceil(PAGESIZE);
207-
log::warn!(
208-
"Allocating bounce buffer: size={} bytes, pages={}",
209-
size,
210-
pages
211-
);
207+
log::warn!("Allocating bounce buffer: size={size} bytes, pages={pages}");
212208

213209
let bounce = DMAPool::<u8>::new(self.numa_id, pages).ok_or(DmaError::OutOfMemory)?;
214210

0 commit comments

Comments
 (0)